28,404
社区成员
发帖
与我相关
我的任务
分享alert(parseFloat('233 元/月'));
function getNum(str)
Dim re : set re = new RegExp
re.Pattern = "[^\d]*"
re.IgnoreCase = True
re.Global = True
getNum = re.replace(str,"")
end function
str = "233 元/月"
response.write getNum(str)
'编辑的时候去掉单位
Function dell_dw(str)
str1=split(str," ")
dell_dw=str1(0)
End function