From: JavaEye.com 枚举JavaScript对象的函数: function iterator(obj) { for (var property in obj) { [removed]ln(“” + property + ” : ” + obj[property] + “”); } } 一个简单示例(test.js): function Employee () { this.name = “”; this.dept = “general”; } function Manager() { this.reports = []; } Manag