关闭当前页面,刷新前一个页面
try {
if (navigator.userAgent.indexOf("MSIE") > 0) { // IE
if (navigator.userAgent.indexOf("MSIE 6.0") > 0) { // IE6
window.opener = null;
window.close();
} else { // IE6+
window.open('', '_top');
window.top.close();
}
} else {
window.opener.location.reload()
window.location.reload()
window.opener = null;
window.open(location, '_self', '')
window.close();
}
} catch (e) {
window.location.reload()
window.opener = null
window.open(location, '_self', '')
window.close()
top.close()
}