- 博客(17)
- 收藏
- 关注
转载 给select增加placeholder技巧
http://stackoverflow.com/questions/5805059/how-do-i-make-a-placeholder-for-a-select-box/84428311.使用默认option再隐藏此选项 Please Choose Open when powered (most valves do this) Clos
2015-09-06 14:22:21 58803 3
转载 git忽略文件失效解决方案
转载:http://segmentfault.com/q/1010000000430426产生原因:文件已进入git提交,gitignore添加在后总结如下:1. git rm --cached logs/xx.log (2. git update-index --assume-unchanged logs/*.log (
2015-08-31 12:37:30 489
原创 NODE ACL - NODE权限管理 - 功能探索
Node ACL 功能探索NODE ACL github项目地址 :https://github.com/OptimalBits/node_acl功能列表
2015-08-04 13:54:40 6599
原创 ionic 滚动bug 解决方案
bug描述:当通过点击等方式加载更多,滑动会卡住。解决方案:***1.前端页面(jade): ion-content(delegate-handle="mainScroll") //- mainScroll是自定义的名称2.当加载后,$ionicScrollDelegate.$getByHandle("mainScroll").resize();此时便不会出现
2015-04-13 16:52:21 4320 1
转载 Angularjs ng-options用法
转载自:http://my.oschina.net/gejiawen0913/blog/188539实例一:基本下拉效果实例二:自定义下拉显示名称实例三: 让选项分组实例四:自定义ngModel的值参考select 是 AngularJS 预设的一组directive。下面是其官网api doc给出的用法:AngularJS:select
2015-03-09 13:52:01 685 1
原创 angularjs 点击div外事件
1.在需要的controller中增加$window2.增加监听$window.onclick = function(event) {}例: xxx.controller('xxCtrl', ['$window', '$scope', function($window, $scope){ $window.onclick = function(event) {
2015-01-30 16:49:04 1504
转载 restangular: Differences with $resource 接上篇Something about http request in angularjs
转自:Differences with $resourceRestangular has several features that distinguish it from $resource:It uses promises. Instead of doing the "magic" filling of objects like $resource, it uses
2014-11-24 13:59:21 578
转载 修改输入框placeholder文字颜色
http://stackoverflow.com/questions/2610497/change-an-inputs-html5-placeholder-color-with-css
2014-11-14 14:13:58 473
转载 How to use a keypress event in angularjs
转自:http://stackoverflow.com/questions/17470790/how-to-use-a-keypress-event-in-angularjs
2014-11-10 10:43:49 481
原创 stylus compiling bug "Cannot read property 'nodes' of undefined"
> 67| background url(/img/loading.gif) center center no-repeatCannot read property 'nodes' of undefined>> at ".list_img" (public/stylus/components.styl:61)
2014-10-21 14:59:35 989
转载 How to conditionally apply CSS styles in AngularJS?
... HTML to display the item ...
2014-09-22 12:50:03 438
原创 Some Android logs
09-19 16:45:04.890: W/PluginManager(712): THREAD WARNING: exec() call to PluginManager.startup blocked the main thread for 41ms. Plugin should use CordovaInterface.getThreadPool().Do
2014-09-19 16:43:23 1001
转载 Async 详解
转自:一:流程控制为了适应异步编程,减少回调的嵌套,我尝试了很多库。最终觉得还是async最靠谱。地址:https://github.com/caolan/asyncAsync的内容分为三部分:流程控制:简化十种常见流程的处理集合处理:如何使用异步操作处理集合中的数据工具类:几个常用的工具类本文介绍其中最简单最常用的流程控制部分。由于node
2014-09-01 14:17:27 451
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人