<!doctype html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>Document</title> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> <link rel="stylesheet" type="text/css" href="css/mui.css"/> <link rel="stylesheet" type="text/css" href="css/cszjw.css"/> </head> <body> <ul class="mui-table-view"> <li class="mui-table-view-cell"> <a class="mui-navigate-right"> 意见反馈 </a> </li> </ul> <ul class="mui-table-view mui_magrin-top" > <li class="mui-table-view-cell"> <a class="mui-navigate"> 关于我们 </a> </li> <li class="mui-table-view-cell"> <a class="mui-navigate-right"> 给我们评分 </a> </li> </ul> <div id="dropout" onclick="closeApp();"> <a href="#"><ul class="mui-footer_dropout mui_magrin-top" >退出登录</ul></a> </div> </body> <script src="js/mui.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript"> function closeApp() { plus.nativeUI.actionSheet({ cancel: "取消", buttons: [{ title: "注销当前账号" }, { title: "直接关闭应用" }] }, function(e) { var index = e.index; switch (index) { //case 0: 取消 case 1: // localStorage.clear(); plus.runtime.restart(); break; case 2: // plus.runtime.quit(); break; } }); }; </script> </html>
MUI注销登录
注销登录页面,该示例为真实项目中,其中也有很多跨域请求的页面搭建,以及域间传值