随笔分类 -  正则表达式

摘要:numString.match(/^\d+(?:\.\d{0,2})?/)[0] {0,2}保留俩位小数 阅读全文
posted @ 2022-05-31 10:46 向前、向前 阅读(178) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示