js parseInt 显示0

parseInt 有第二个参数, 就是进制参数
parseInt("08", 10);  //表示这个数字是十进制的就不会出错了.
posted @ 2014-07-29 10:52  mali0932  阅读(256)  评论(0编辑  收藏  举报