Number(11).toString()"11"var num = 111;undefinednum.toString()"111"111.toString()VM234432:1 Uncaught SyntaxError: Invalid or unexpected tokenhtml
缘由:JavaScript的解释器把数字后的"."偷走了(做为前面数字的小数点), 相似于下面的操做:htm
原文连接:http://www.javashuo.com/article/p-xhoecawh-cx.htmlblog