摘要: binding: 通常可以使用ng-model来做绑定!Scope作用域: Angular Binding --> {{data.message}} ... 阅读全文
posted @ 2014-08-10 19:57 Zhentiw 阅读(433) 评论(0) 推荐(0)
摘要: function Fencepost (x, y, postNum){ this.x = x; this.y = y; this.postNum = postNum; this.connectionsTo = []; } Fencepost.prototype = { sendRopeTo: fun 阅读全文
posted @ 2014-08-10 17:59 Zhentiw 阅读(170) 评论(0) 推荐(0)
摘要: You can add prototype to any object in Jacascript likes Object, Array, String... prototype 有继承的作用,比如说我有一个String的对象,我可以访问Object的prototype hasPrototype( 阅读全文
posted @ 2014-08-10 02:32 Zhentiw 阅读(185) 评论(0) 推荐(0)