详细问题描述
[内容]
更新hbuilder以后,Android手机跳转到含有map对象的页面上会闪屏、退到跳转前页面。上个版本无此问题。
重现步骤
[步骤] 跳转到含有plus.map对象的页面,闪屏,自动退到跳转前页面
[结果]
[期望] 尽快解决
运行环境
[系统版本] mac 与window均有此问题
[浏览器版本] 小米5 Android 6.0.1
[IDE版本] HBuilder 8.8.5.201711010242
[mui版本] Mui v3.7.0
附件
[代码片段]
A页面跳转到B页面
A页面代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title></title>
<script src="js/mui.min.js"></script>
<link href="css/mui.min.css" rel="stylesheet" />
<script type="text/javascript" charset="utf-8">
mui.init();
mui.plusReady(function(){
mui("#btn")[0].addEventListener('tap',function(){
mui.openWindow('map.html','map')
})
})
</script>
</head>
<body>
<button id="btn" type="button" class="mui-btn mui-btn-blue">按钮</button>
</body>
</html>
B页面代码
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<link href="css/mui.min.css" rel="stylesheet" />
</head>
<body>
<header class="mui-bar mui-bar-nav">
<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
<h1 class="mui-title">标题</h1>
</header>
<div id="div_map" style="height: 500px;width: 100%;"></div>
<script src="js/mui.min.js"></script>
<script type="text/javascript">
mui.init();
mui.plusReady(function() {
var map = new plus.maps.Map("div_map", {
center: new plus.maps.Point(116.397584, 39.907704),
// center:new plus.maps.Point(116.397428, 39.90923),
zoom: 12
});
})
</script>
</body>
</html>
[安装包]
联系方式
[QQ] 495265221
[电话]