Skip to content

event_onbeforeopen_zh

yinlijun2004 edited this page Dec 23, 2015 · 4 revisions

描述

  • onBeforeOpen(initData) 这个事件在window/dialog执行onOpen事件之前被触发。onBeforeOpen事件在窗口过场动画前触发,onOpen事件在窗口过场动画完成后触发。
  • initData 初始化window所需要的参数,此参数是从openWindow方法传过来的。

示例

打开窗口:

this.openWindow("win-test", 
    function (retCode) {console.log("window closed.");}, false, "It is the title");

处理onOpen事件:

console.log(initData);
Clone this wiki locally