在openmodel中执行完对数据库的操作(增删改)
点击保存按钮,将该页面关掉,然后调用父页面的刷新操作,为什么有时候新增或修改没有成功?
是什么原因引起的?有什么解决办法?function test() {
document.testForm.submit();
window.close();
}
点击保存按钮,将该页面关掉,然后调用父页面的刷新操作,为什么有时候新增或修改没有成功?
是什么原因引起的?有什么解决办法?function test() {
document.testForm.submit();
window.close();
}
if(parent.opener!=null){
if(parent.opener!=null){
parent.opener.history.go(0);
}
parent.window.opener=null;
parent.window.open("",'_self',"");
parent.window.close();
}
else{
if(opener!=null){
opener.history.go(0);
}
window.opener=null;
window.open("",'_self',"");
window.close();
}试试这个
你的新增和修改还没有执行完毕 就已经close掉 链接就此中断呢