Javascript提取数字出来?var str1= "asdfa2131asd1 "; 怎么样把这数字提取出来.把提取的数字存储变量到str2中[解决办法]var str2 = str1.replace(/\D/g, " ");