Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
trackRef
Function · 0.45
triggerRef
Function · 0.45
track
Function · 0.45
trigger
Function · 0.45
createGetters
Function · 0.45
createReactiveObj
Function · 0.45
Calls
1
trackRef
Function · 0.70
Tested by
no test coverage detected