function window.onbeforeunload()
{
location.href="../enterQuit.do";
alert("这里执行数据库操作");
}
在../enterQuit.do我有这样的代码
要怎么样才能在浏览器关闭前保证执行完以下代码呢?
request.getSession().removeAttribute("adminInfo");
request.getSession().removeAttribute("adminInfo");
request.getSession().removeAttribute("metafuncUrlList");
request.getSession().removeAttribute("afeephone");
request.getSession().invalidate();
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货