解决方法
以下是差异的摘要(取自
jslinterrors):
// Overwrite the Object function. window.Object = 10; // Execution of the following will raise: // "TypeError: number is not a function" (Chrome) var x = new Object();
对象文字概念var x = {};无论window.Object的状态如何都成功.