摘要: construct() construct方法用于拦截new命令。 下面是一个例子。 如果construct方法返回的不是对象,就会抛出错误。 deleteProperty() deleteProperty方法用于拦截delete操作,如果这个方法抛出错误或者返回false,当前属性就无法被dele 阅读全文
posted @ 2017-03-14 08:31 叫我小红依吧 阅读(148) 评论(0) 推荐(0) 编辑