说明:
关闭窗口。
函数调用:
【封装函数】asyncbox.close(id);
参数配置:
- id (String,Object.id)
└ 窗口ID。
AsyncBox
代码:
使用辅助函数,从外部关闭窗口:
//如需阻止窗口关闭,请在判断 action 值内加入 return false asyncbox.open({
id : 'new_html',
url : 'asyncbox.html',
width : 400,
height : 300,
});
//在其他地方关闭该窗口
asyncbox.close('new_html');