通过回调函数 调用parent窗体 关闭子窗体 因为没有运行完需要的函数 回调关闭会出错 需要延时执行

取巧方法

myBOCaller.setPassword(userIDedit, oldpassword, newpassword, function (result) {
if (result == -1) {
alert("旧密码不正确");
} else if (result == 0) {
alert("修改成功");



var st = setTimeout(function () {
parent.closeChildWindow();
clearTimeout(st);
}, 100);
}




})

 

posted @ 2014-04-08 10:46  秒_星  阅读(139)  评论(0编辑  收藏  举报