如题
代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta name="HandheldFriendly" content="true" />
<meta name="MobileOptimized" content="320" />
<title>个人中心</title>
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
<link href="../css/mui.min.css" rel="stylesheet"/>
<script src="../js/mui.min.js"></script>
<script>
mui.init();
</script>
</head>
<body onselectstart="return false;">
<header >
<div class="nvbt iback" id="backBtn"></div>
<div class="nvtt">用户中心</div>
</header>
<div id="content" class="content">
</div>
<script>
mui.plusReady(function(){
mui.back=function(){
plus.webview.getWebviewById("index").show();
plus.webview.close(plus.webview.currentWebview());
}
document.getElementById("backBtn").addEventListener('tap',function(){
alert(1)
//mui.back();
})
})
</script>
</body>
</html>
按钮事件没反应。。。。。是从一个subpage主页面跳转过来的。主页面hide了,create了这个页面,并显示了这个,所有tap事件无效
0 个回复