File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed
chapters/Javascript_Core/ECMAScript/es6 Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -89,11 +89,22 @@ var proxy = Proxy(target, handler);
89
89
90
90
笔者还在理解中。目前新版的Chrome和node支持。
91
91
92
+ ## Prmoise
93
+
94
+ 原生版本的Promise API,有关Promise的内容,会在另外一篇文章内详细说明: [ Javascript Promise] ( ../../Functional_Javascript/Javascript_Promise.md ) 。
95
+
96
+ ## Proxy
97
+
98
+ Proxy是Javascript元编程的一道大门。Javascript在语言层面无法去重载操作符,但是通过Proxy API,我们可以彻底的修改一个对象的各种行为。这种强大的行为已经在` node --harmony ` 和Firefox中支持了。
99
+
100
+ 待补充。可以参考:
101
+
102
+ * http://www.slideshare.net/BrendanEich/metaprog-5303821
103
+ * http://soft.vub.ac.be/~tvcutsem/proxies/
104
+ * http://ariya.ofilabs.com/2013/07/es6-and-proxy.html
105
+
106
+
92
107
[ ^ 1 ] : http://wiki.ecmascript.org/doku.php?id=harmony:typed_objects
93
- [ ^ 2 ] : http ://wiki.ecmascript .org/doku.php?id=harmony:direct_proxies
108
+ [ ^ 2 ] : https ://developer.mozilla .org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy
94
109
[ ^ 3 ] : http://people.mozilla.org/~jorendorff/es6-draft.html#sec-symbol-constructor
95
110
[ ^ 4 ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise
96
-
97
- ## Prmoise
98
-
99
- 原生版本的Promise API,有关Promise的内容,会在另外一篇文章内详细说明: [ Javascript Promise] ( ../../Functional_Javascript/Javascript_Promise.md ) 。
You can’t perform that action at this time.
0 commit comments