JM_KA/assets/Script/webview.ts

10 lines
300 B
TypeScript
Raw Normal View History

2021-12-28 19:51:27 +08:00
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;
}
}