// 字符串中提取数字
function getNum(text){
var value = text.replace(/[^0-9]/ig,"");
return parseFloat(value);
}
// 字符串中提取数字
function getNum(text){
var value = text.replace(/[^0-9]/ig,"");
return parseFloat(value);
}
转载于:https://my.oschina.net/Cubicluo/blog/839727