defects
Object.defineproperty cannot monitor array subscript changes, resulting in adding elements by array subscript and cannot respond in real time;
2. Object.defineproperty can only hijack the attributes of an Object, which requires traversal for each Object, each attribute, or deep traversal if the attribute value is an Object. A Proxy can hijack an entire object and return a new object.
Proxy
Proxy can Proxy not only objects, but also arrays. You can also proxy dynamically added properties.
The resources