//去掉字符串前的0
<
script>
var a
='00123';
alert(a.replace(
/\b(0+)/gi,""));
</script>