/** * [参数str] * @type {var String} * return 30 */ var str = "ren民BI30kuai" console.log(str.replace(/[^0-9]/ig,""));
JS正则表达式提取数字
猜你喜欢
转载自www.cnblogs.com/tanjiyuan/p/11357706.html
今日推荐
周排行