Skip to content

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);
Clone this wiki locally