摘要: var isBoxIn3X3 = function(arr) { var oArr = quickSort(arr); var aSum = sum(oArr); var cSum = 0; var maxDelta = oArr[oArr.length - 1] - oArr[0]; var ro 阅读全文
posted @ 2016-12-29 01:54 Alex_Null 阅读(620) 评论(0) 推荐(0)
摘要: 例子说话 winscp /console /command "option batch continue" "open user:psw@ipaddress" "cd /usr/local/webapps/web" "put -filemask=|*git/;*svn/;*META-INF/;*WE 阅读全文
posted @ 2016-11-15 20:27 Alex_Null 阅读(1981) 评论(1) 推荐(1)
摘要: 1.jquery里dom的fadeout在mac和iphone的safari下会出现闪烁现象,solve it with css 阅读全文
posted @ 2016-11-04 00:49 Alex_Null 阅读(98) 评论(0) 推荐(0)
摘要: 1.Angular 由来: <> called "angle brackets", make it regular, ->Angular 2.ng-app本身就是个特别的directive 3. 阅读全文
posted @ 2016-11-04 00:26 Alex_Null 阅读(139) 评论(0) 推荐(0)
摘要: 双向绑定这个特性有时让人又爱又恨 假设控制器 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 阅读(550) 评论(0) 推荐(0)
摘要: get() query() save() remove() delete() 阅读全文
posted @ 2016-10-23 00:26 Alex_Null 阅读(145) 评论(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 阅读(104) 评论(0) 推荐(0)
摘要: angular相关: 1.在使用ui-router与requirejs配合的异步资源加载路由中,如果在异步controller中继承controller会产生问题 2.onclick中虽然可以写简单的逻辑 但是++、--、?:这样的逻辑依然会失效 所以应该统一写在scope内封成函数 3.ng-bi 阅读全文
posted @ 2016-10-16 17:39 Alex_Null 阅读(129) 评论(0) 推荐(0)
摘要: 天气icon http://fonts.artill.de/collection/artill-weather-icons 阅读全文
posted @ 2016-10-11 19:07 Alex_Null 阅读(122) 评论(0) 推荐(0)
摘要: 1.sass中@import sass文件时 写不写.sass没有影响 2.sass中@import css时 写.css代表代表css中的import 3.sass中@import css时 不写.css 合并编译 阅读全文
posted @ 2016-09-09 17:33 Alex_Null 阅读(152) 评论(0) 推荐(0)