Top 10 Quick Tips for JavaScript Developers
Published in
6 min readApr 27, 2020
We have heard the word “data binding” more often in the programming. The key to “data binding” is to monitor the changes of data, but for such an object: let obj = {value: 1}
, how should we know that obj had Changed?
1. defineProperty
ES5 provides the Object.defineProperty method, which can define a new property on an object, or modify an existing…