java_js从字符串中截取数字

var str="1件*20桶*30包*123.45公斤";
var res=str.match(/d+(.d+)?/g);
alert(res);
原文地址:https://www.cnblogs.com/zxxbk/p/6245661.html