使用Array的原型使对象具有length,和数组的内容
var elems = { length: 0, add: function (elem) { Array.prototype.push.call(this, elem); }, gather: function (id) { this.add(document.getElemen...