对象属性的使用 JavaScript中的所有变量都可以当做对象使用,除了null和undefined. false.toString(); // 'false' [1, 2, 3].toString(); // '1,2,3' function Foo(){} Foo.bar = 1; Foo.bar; // 1 字面值也可以作为对象使用,只不过需要变通方法: 2.toString(); // 出错:SyntaxError 2..toString(); // 第二个点号可以正常解析 2 .toS…