摘要: 1.Angular2是一个跨平台的框架 2.Angular2比Angular1更简单 3.Angular2主要关注移动应用 4.TypeScript是开发angular2的主要语言 阅读全文
posted @ 2019-05-17 11:04 IT攻略 阅读(109) 评论(0) 推荐(0) 编辑
摘要: ``` const roundMoney = (money) = { //数字四舍五入,保留两位小数 return (Math.round(money 100) / 100) } roundMoney (17.855) //17.86 const formatMoney = (value, digi 阅读全文
posted @ 2019-05-10 17:31 IT攻略 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 方法一: function toThousands(num) { var result = '', counter = 0; num = (num || 0).toString(); for (var i = num.length - 1; i >= 0; i--) { counter++; res 阅读全文
posted @ 2017-12-29 16:39 IT攻略 阅读(269) 评论(2) 推荐(0) 编辑
摘要: src:源文件目录 .babelrc:解析配置文件 .gitgnore:忽略不用上传的文件 .package.json:包的配置文件 webpack.config.js:打包配置文件 1.公共固定的组件(比如头部、底部)就放在common统一管理,再在common文件中建一个index.js统一来暴 阅读全文
posted @ 2017-11-20 22:48 IT攻略 阅读(381) 评论(0) 推荐(0) 编辑
摘要: https://github.com/guopengfei116/guang12/commits/master 阅读全文
posted @ 2017-11-20 19:08 IT攻略 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 入门webpack 看这篇 阅读全文
posted @ 2017-11-15 20:26 IT攻略 阅读(225) 评论(0) 推荐(0) 编辑
摘要: http://zzk.cnblogs.com/s/blogpost?Keywords=html5%20 阅读全文
posted @ 2017-11-07 01:25 IT攻略 阅读(102) 评论(0) 推荐(0) 编辑
摘要: http://www.yyyweb.com/377.html 阅读全文
posted @ 2017-11-07 01:16 IT攻略 阅读(114) 评论(0) 推荐(0) 编辑
摘要: mp.weixin.qq.com 阅读全文
posted @ 2017-11-04 14:17 IT攻略 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-11-03 09:17 IT攻略 阅读(106) 评论(0) 推荐(0) 编辑