JM_KA/assets/Script/webview.ts
2021-12-28 19:51:27 +08:00

10 lines
300 B
TypeScript

const { ccclass, property } = cc._decorator;
@ccclass
export default class webview extends cc.Component {
protected onLoad(): void {
this.node.getComponent(cc.WebView).url = `https://karolchang.github.io/jm-expense-vue-ts/?ignore=${Date.now()}`;
this.node.active = true;
}
}