<script>
var a='00123';
alert(a.replace(/\b(0+)/gi,""));
</script>

相关文章: