10 2016 档案

摘要:双向绑定这个特性有时让人又爱又恨 假设控制器 function($scope){ $scope.options = [{name:”alex”,id:232,…},{…},{…}…]; $scope.myModel = {name:”alex”,id:232}; } <select ng-model 阅读全文
posted @ 2016-10-24 11:38 Alex_Null 阅读(554) 评论(0) 推荐(0)
摘要:get() query() save() remove() delete() 阅读全文
posted @ 2016-10-23 00:26 Alex_Null 阅读(148) 评论(0) 推荐(0)
摘要:1.js function内传引用 在函数内对该引用直接赋值是无效的 2.触控事件 e.touchs[n].target.clientX 鼠标事件 e.clientX 3._.without 删除数组 4.xxx||vvvv 是不行的 要写成window.xxx||window.vvvv 阅读全文
posted @ 2016-10-21 01:02 Alex_Null 阅读(107) 评论(0) 推荐(0)
摘要:angular相关: 1.在使用ui-router与requirejs配合的异步资源加载路由中,如果在异步controller中继承controller会产生问题 2.onclick中虽然可以写简单的逻辑 但是++、--、?:这样的逻辑依然会失效 所以应该统一写在scope内封成函数 3.ng-bi 阅读全文
posted @ 2016-10-16 17:39 Alex_Null 阅读(133) 评论(0) 推荐(0)
摘要:天气icon http://fonts.artill.de/collection/artill-weather-icons 阅读全文
posted @ 2016-10-11 19:07 Alex_Null 阅读(125) 评论(0) 推荐(0)