摘要: 1. http://www.tuicool.com/articles/FJVNZf 2.http://www.ydcss.com/archives/18 3.手动创建package.json; 如:cnpm init; 阅读全文
posted @ 2016-11-30 14:00 黑土白云 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 1. 2. 优化,封装到一个公用的字符串操作类中去 阅读全文
posted @ 2016-11-30 11:15 黑土白云 阅读(332) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-11-30 10:08 黑土白云 阅读(1) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-11-30 09:06 黑土白云 阅读(9) 评论(0) 推荐(0) 编辑
摘要: // 千分位 console.log(split3str("123456789")) function splitByReg3(str) { var re = /(\d{1,3})(?=(\d{3})+(?:$|\.))/g; return str.replace(re, "$1,") } console.log(split3s... 阅读全文
posted @ 2016-11-30 09:02 黑土白云 阅读(454) 评论(0) 推荐(0) 编辑
摘要: 1. 阅读全文
posted @ 2016-11-30 08:59 黑土白云 阅读(890) 评论(0) 推荐(0) 编辑