fixbug
This commit is contained in:
+18
-1
@@ -38,12 +38,29 @@
|
||||
<div class="content-block">
|
||||
<p>
|
||||
<a onclick="plus.runtime.restart()" class="button button-big button-round theme">重启应用</a>
|
||||
<a onclick="back(),plus.nativeUI.closeWaiting();" class="button button-big button-round theme">返回刷新</a>
|
||||
<a onclick="again()" class="button button-big button-round theme">返回刷新</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript" src="js/common.js" ></script>
|
||||
<script>
|
||||
var flag;
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady() {
|
||||
var self = plus.webview.currentWebview();
|
||||
flag = self.flag;
|
||||
plus.nativeUI.closeWaiting();
|
||||
}
|
||||
|
||||
function again(){
|
||||
if(flag){
|
||||
back();
|
||||
plus.nativeUI.closeWaiting();
|
||||
}
|
||||
//window.location.reload();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user