这个问题正好我也遇到过。保证 home_win存在且唯一
这个问题我也遇到过
我的退出代码
function tuichu() {
api.toast({
msg : '成功退出',
duration : 3000,
location : 'bottom'
});
$api.clearStorage();
api.openWin({
reload : true,
name : 'login',
url : 'win_login.html',
vScrollBarEnabled : false,
animation : {
type : "cube",
subType : "from_bottom",
duration : 800
}
});
api.closeWin({
name : 'index'
});
}
登录代码
api.openWin({
name : 'index',
url : 'main.html',
hScrollBarEnabled : false,
vScrollBarEnabled : false
});
api.closeWin();