题解 | #Proxy拦截器#
Proxy拦截器
https://www.nowcoder.com/practice/bd313bf21dc342a981f6ed87e21308b7
<script> const _proxy = (object, ...prototypes) => { return new Proxy(object, { get(target, propKey) { if (prototypes.includes(propKey)) { return 'noright' } return target[propKey] } }) } </script>