0
這在Chrome/Firefox中工作得很好,但在IE 9中失敗。我怎樣才能正確地做到這一點?如何創建嵌套的JavaScript對象
var Wrapper = function()
{
this.loc = {};
this.loc.default = {}; // fails here in IE
this.loc.default.lat = 30;
this.loc.default.lon = -120;
};