ES5 的 setter 和 getter
摘要:有两种方式使用 setter 和 getter 1. set/get 2. Object.defineProperty 当然,通常用 setter 和 getter 来实现私有变量 或者 当然,setter 和 getter 最牛逼的用处是用来实现目前流行的 “双向绑定”,MVxx之类的库。不支持
阅读全文
posted @ 2016-03-17 07:28
If you cannot hear the sound of the genuine in you, you will all of your life spend your days on the ends of strings that somebody else pulls.
posted @ 2016-03-17 07:28
posted @ 2016-03-16 07:18
posted @ 2016-03-16 07:15
posted @ 2016-03-15 07:32
posted @ 2016-03-04 09:31