function exitSystem(){
if( !confirm("是否退出登陆?") ){
return;
}
$.ajax({
url: '/exitSystem.do?method=app',
type: 'post',
dataType: 'text',
async: false,
success: function (response) {
mui.toast(response + "------------------");
if(response == "success"){
try{
mui.openWindow({
id: 'loginxxxx',
url: 'login.jsp'
});
}catch(e){
alert(e);
}
}else{
alert("xxxx");
}
}
});
}
<button class="mui-btn mui-btn-blue mui-btn-link mui-pull-right" onclick="exitSystem()">注销</button>
1 个回复
giddens
我猜是openwindow里的id不对