剔除 如 010.020.020.03 前面 的0

来源:互联网 发布:淘宝消费者投诉热线 编辑:程序博客网 时间:2024/05/01 18:28
var str=str.replace(/0(/d)/g,"$1");
str=str.replace(/0(/d)/g,"$1");
window.alert(str);
 
原创粉丝点击