Item.prototype.add = function ( child ) { // 在子元素容器中插入子元素
this.children.push ( child ); // 插入到当前组件元素树上
this.element.appendChild( child.getElement() ); return this;
};
Item.prototype.getElement = function () { return this.element;
};Uncaught TypeError: child.getElement is not a function这是怎么回事呢?
添加回答
举报
0/150
提交
取消