js匹配字符串去掉前面的0

newArr[2].substring(2,5).replace(/(0+)/gi,"")
原文地址:https://www.cnblogs.com/wangshengli520/p/14301570.html