for (const child of this.children) { // 执行操作,如判断类型或调用方法 if (child instanceof Object) { //如果类型正确 移出去 this.removeChild(child); } }