问下大家 在JS中我定义了一个方法就是这个方法有一个参数,当我传的这个参数是00开头的时候他只能接受到00后面的数请问下怎么回事啊?
4条回答 默认 最新
superxielei 2008-10-09 16:11关注[code="java"]
function test(str){
alert(str);
}
newString = new String("00168")
test(newString);//succcess
test(00168);//error
test("00168");//succcess
test('00168');//succcess
[/code]本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报