Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit afd04a4

Browse filesBrowse files
committed
✨ 理解数据代理
1 parent 0df9dec commit afd04a4
Copy full SHA for afd04a4

File tree

Expand file treeCollapse file tree

1 file changed

+28
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+28
-0
lines changed
+28Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>理解数据代理</title>
8+
</head>
9+
10+
<body>
11+
12+
</body>
13+
14+
<script>
15+
let obj1 = { x: 100 }
16+
let obj2 = { y: 200 }
17+
18+
Object.defineProperty(obj2, "x", {
19+
get() {
20+
return obj1.x
21+
},
22+
set(value) {
23+
obj1.x = value
24+
}
25+
})
26+
</script>
27+
28+
</html>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.