/** * [参数str] * @type {var String} * return 30 */ var str = "ren民BI30kuai" console.log(str.replace(/[^0-9]/ig,""));
原文地址:https://www.cnblogs.com/tanjiyuan/p/11357706.html
时间: 2024-10-21 10:03:43
/** * [参数str] * @type {var String} * return 30 */ var str = "ren民BI30kuai" console.log(str.replace(/[^0-9]/ig,""));
原文地址:https://www.cnblogs.com/tanjiyuan/p/11357706.html