-
Notifications
You must be signed in to change notification settings - Fork 125
event_onopen_zh
yinlijun2004 edited this page Dec 23, 2015
·
5 revisions
-
onOpen(initData) 这是UIWindow的方法,此事件在window/dialog打开后触发。
- initData 从openWindow函数传过来的初始化数据。
###示例
- 打开窗口:
this.openWindow("win-test",
function (retCode) {console.log("window closed.");}, false, "It is the title");
- 处理onOpen事件:
//这里initData就是openWindow的最后一个参数"It is the title"。
console.log(initData);