提取字符串中的数字

str.replace(/[^0-9]/ig, '')

原文地址:https://www.cnblogs.com/qiang-ling/p/9209762.html