jquery 获取字符串中的数字时间:2023-03-09 05:26:48 str_num = 'abc123' num = parseInt(str_num.replace(/[^0-9]/ig,"")); alert(num);