import { _decorator, Component, Label, Node } from 'cc'; const { ccclass, property } = _decorator; @ccclass('page_tishi') export class page_tishi extends Component { @property(Label) txt_tishi: Label = null; Init(data: string) { this.txt_tishi.string = data } OnClickExit() { this.node.destroy(); } }