在组件绘制完成之后调用this.closeButton.visible = false; 例如:在initialize调用的方法中编写this.closeButton.visible = false即可。