MCPcopy Create free account
hub / github.com/Xu22Web/tech-study-js / get

Method get

tech-study.js:956–960  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

954 // 定义属性
955 Object.defineProperty(this, 'value', {
956 get() {
957 // 收集依赖
958 trackRef(this);
959 return _this._value;
960 },
961 set(newVal) {
962 // 旧数据
963 const oldVal = this._value;

Callers 6

trackRefFunction · 0.45
triggerRefFunction · 0.45
trackFunction · 0.45
triggerFunction · 0.45
createGettersFunction · 0.45
createReactiveObjFunction · 0.45

Calls 1

trackRefFunction · 0.70

Tested by

no test coverage detected