https://ionicframework.com/ Install Ionic npm install -g cordova ionic Start an app ionic start myApp tabs Run you app cd myApp ionic serve
Category: Javascript
Angular 2.0
Angular2.0 http://angular.io https://angular.cn Installation npm install -g @angular/cli Create Project ng new my-app Start project cd my-app ng serve –open Open in browser open http://localhost:4200 Angular Cli WIKI https://github.com/angular/angular-cli/wiki Angular Cli ng new ng serve ng generate ng lint ng test ng e2e ng build ng get/ng set ng doc ng eject ng xi18n Angular…
批量转换目录下所有文件到UTF8
#!/bin/sh for i in * do iconv -f GBK -t UTF-8 $i >tmp cp tmp $i done rm tmp
jQuery如何获取动态添加的元素
在一个页面中, 动态添加一些inpu 后, 通过一般的原有方法$(‘.month-calculate’) 无法取到元素, 但是在Firebug的控制台中是可以取到的.. 1 如: $(‘.month-calculate’).change(function(){ console.info(‘yes’); }); 和 $(‘.month-calculate’).bind(‘change’,function () { console.info(‘yes’); }); 都不起作用. 而 $(‘.xxx’).live方法在 jQuery 1.9后被取消. 只能用以下方法了: 1 2 3 $(‘.tableBlock’).on(‘change’,’.month-calculate’,function () { console.info(‘yes’); }); 注意: .tableBlock 是 .month-calculate的父元素.