JavaScript(Proxy)
2016-11-14 本文已影响17人
JetLu
例子
const proxy = new Proxy(new Date(), {})
proxy.getDate()
// Uncaught TypeError: this is not a Date object.
const proxy = new Proxy(new Date(), {})
proxy.getDate()
// Uncaught TypeError: this is not a Date object.