javascript
Js Hash table – problemi con firebug
9 June 2008 | CommentsStranamente firebug non logga correttamente un hash.
Sto sbagliando qualcosa?
var _hash = [];
_hash["sala-1"] = "test1";
_hash["sala-2"] = "test2";
//no
console.log(_hash);
//yes
for (var i in _hash) {
console.log(_hash[i]);
}
This entry was posted in javascript and tagged firebug, javascript. Bookmark the permalink.
← jQuery Google Charts 0.92 Proxy php vs Websense →