js中认“0”开头的字符串为8进制的。所以当我们用parseInt("01")~~~parseInt("07") 的时候都是正确的。而到parseInt("08")~parseInt("09")的时候就出错了。 解决方法 paseInt("08",10) 设置第2个参数指定所用的进制转换。。。