10黑马币
最佳答案[mw_shl_code=javascript,true]MyObj = new Proxy({}, {
get: function(target, name, receiver) {
var temp = target[name];
console.log('You are gettting:'+name);
return temp;
} ,set: function(target, name, value) {
target[name]=value;
console.log('You are setting:'+ name);
console.log('Value is:')
console.log(value)
}
});
var testObj = new Object(My ...
| |
| |
| |
| |