Since you want to alert
it out I assume it's not for your production version, and that old browser compatibility is not an issue.
If this is the case, then you can do this:
var myHash = ......
alert(Object.keys(myHash).map(function(key) { return [key, myHash[key]]; }));
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…