js实现在字符串中引取数字 <br>function getNum(text){<br>var value = text.replace(/[^0-9]/ig,""); <br>alert(value);<br>}<br>