str.replace(/[^\d]/g,'');使用上述代码时,报错replace is not a function,将str转换成字符串即可。
javascript 报错 replace is not a function
最新推荐文章于 2024-06-11 13:24:04 发布
str.replace(/[^\d]/g,'');使用上述代码时,报错replace is not a function,将str转换成字符串即可。