JavaScript(Proxy)

2016-11-14  本文已影响17人  JetLu

例子


const proxy = new Proxy(new Date(), {})
proxy.getDate()
// Uncaught TypeError: this is not a Date object.

参考


上一篇 下一篇

猜你喜欢

热点阅读