12 2018 档案

摘要://四舍五入保留2位小数(若第二位小数为0,则保留一位小数) function keepTwoDecimal(num) { var result = parseFloat(num); if (isNaN(result)) { alert('传递参数错误,请检查!'); return false; } 阅读全文
posted @ 2018-12-28 11:18 进军码农 阅读(214) 评论(0) 推荐(0)
摘要:arrt.sort(this.commonSortMethod(atrr,false)) 阅读全文
posted @ 2018-12-28 11:17 进军码农 阅读(289) 评论(0) 推荐(0)
摘要:750的设计图,设置font-size: 125%; 1rem =20px; 大部分浏览器默认的字体大小为16px,谷歌默认字体大小为12px; 其他设备的fon-size的比列: 320/720*(20/16*100%) 阅读全文
posted @ 2018-12-06 19:44 进军码农 阅读(1164) 评论(0) 推荐(0)
摘要:this.navCtrl.getViews().forEach(element => { if(element.name == 'JiecheHomePage'){ this.navCtrl.popTo(element); }}); 阅读全文
posted @ 2018-12-04 15:10 进军码农 阅读(960) 评论(1) 推荐(0)