![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
函数
weixin_43910427
这个作者很懒,什么都没留下…
展开
-
数字格式化:设置千分位分隔符
10000, 处理成10,000 之后确实顺眼许多,目前方法考虑到的范围是:数值的正负,整数,小数,0原创 2021-12-07 16:28:27 · 1421 阅读 · 0 评论 -
根据正则表达式获取字符串中的所有匹配结果
先上方法 // 根据正则在字符串中查找结果 function getData (inStr, inPattern,inList = []){ let reg = inPattern let res = inStr.match(reg); // 匹配不到东西了 if(res == null) return; // 匹配到的那个结果 let matchStr = res[0]; // 匹配位置 let matchIndex = inStr.indexOf(ma原创 2021-11-11 09:18:10 · 962 阅读 · 0 评论 -
js中,小数的加减乘除
一个快速处理小数加减乘除的函数正在向你奔来原创 2021-10-09 16:16:48 · 515 阅读 · 0 评论