str.replace(/[^\d]/g,'');使用上述代码时,报错replace is not a function,将str转换成字符串即可。
javascript 报错 replace is not a function
猜你喜欢
转载自blog.csdn.net/D_claus/article/details/83343763
今日推荐
周排行