let count = 0 const _proxy = object => { // 补全代码 const p = new Proxy(object, { get: function (object, prop) { return prop in object ? count++ : count--; } }); return p }