摘要: String 工具类 目前总结 10个方法 str.charCodeAt(3); 返回指定位置字符Unicode编码 str.substr(0,3);str.substring(0,7);str.slice(-8,-1); 三种截串 1.n-m 2.n-m(不包括m)3.可以传负索引 str.ind 阅读全文
posted @ 2017-04-01 21:06 且听风吟V 阅读(715) 评论(0) 推荐(0)
摘要: String工具 10种方法 Math 工具 7种方法 Array 工具 10种方法 DATE 工具 10种方法 阅读全文
posted @ 2017-04-01 13:21 且听风吟V 阅读(182) 评论(0) 推荐(0)
摘要: Math工具方法 目前总结 7种 Math.abs(-12); 取绝对值 Math.ceil(-12.99);Math.floor(-12.99); 向上取整 向下取整 Math.round(-12.77); 四舍五入 Math.max(123,44,66,777,412,99,-999); Mat 阅读全文
posted @ 2017-04-01 13:20 且听风吟V 阅读(431) 评论(0) 推荐(0)