//退出操作******************
document.getElementById('exit').addEventListener('tap', function() {
var btnArray = [{title: "注销当前账号"}, {title: "直接关闭应用"}];
plus.nativeUI.actionSheet({cancel: "取消",buttons: btnArray}, function(event) {
var index = event.index;
switch (index) {
case 1:
store.delete('uid');
openWVs("login.html","login.html","index.html");
break;
case 2:
plus.runtime.quit();
break;
}
});
}, false);
点击按钮后,看不到上面预设的三个按钮选项。
0 个回复