function logOut() {
$(‘#logging-out‘).on(‘click‘, function () {
stopPreventDefault();
$.messager.confirm(‘安全提示‘, ‘是否退出系统?‘, function (r) {
if (r) {
window.opener = null; window.open(‘‘, ‘_self‘); window.close();
//window.location = $(‘#logging-out‘).attr(‘href‘);
}
});
});
}
原文:http://www.cnblogs.com/871735097-/p/3820464.html