任何人都可以解釋爲什麼我無法正確確定原型散列的大小。散列表顯示爲在控制檯中填充,但大小爲0
下面打印出klass {_object: Object, test: "foo", each: function, eachSlice: function, all: function…}
,證明「測試」對肯定是增加的。但尺寸打印爲0.
this.state = new Hash();
this.state["test"] = "foo";
console.log(this.state.size());
console.log(this.state);