正则获取字符串中的数字 var reg = /d+/g; var text = “斯蒂234+56放的”; var ms = text.match(reg); console.log(ms) //["234", "56“]