Property names with spaces in object literals
问题 I'm just wondering, with the "one", "two", "three" stuff, could there be a space? So instead of "one" it could be "one meow"? var meow = { one: function (t) { return "a"; }, two: function (t) { return "b"; }, three: function (t) { return "c"; } }; 回答1: Sure, there can be spaces in property names, but then you have to enclose them in " : var meow = { "one meow": function (t) { return "a"; }, two: function (t) { return "b"; }, three: function (t) { return "c"; } }; When you want to access that