首页的代码如后面所附, 程序在真机调试、虚拟机调试都没有出现问题。但打包真机安装后无法运行。
以debug模式打包,控制台看到Uncaught ReferenceError: mui is not defined。经反复测试,似乎所有的js文件都没有正常加载,不知这种情况如何处理?
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="_resources/libs/fontawesome/css/font-awesome.min.css">
<link rel="stylesheet" href="_resources/libs/pe-icon-7-stroke/css/pe-icon-7-stroke.css">
<link rel="stylesheet" href="_resources/css/mui.min.css">
<link rel="stylesheet" href="_resources/css/custom.css">
<style>
html, body, .mui-content {
background-color: #fff;
}
.mui-control-content {
background-color: #fff;
min-height: 400px;
height: 100%;
border:none !important;
}
</style>
</head>
<body>
<!--<div class="splash"> <div class="splash-title" style="margin: 45% auto;"><img src="/_resources/images/loading.gif" width="100" /> </div> </div>-->
<header class="main-header"><div class="logo">南望</div></header>
<nav id="nav" class="mui-bar mui-bar-tab"></nav>
<div id="contentContainer" class="mui-content"></div>
<script src="_resources/libs/jquery/jquery.min.js"></script>
<script src="_resources/js/webtoolkit.digest.js"></script>
<script src="_resources/js/utils.js"></script>
<script src="_resources/js/mui.min.js"></script>
<script src="_resources/js/mui.pullToRefresh.js"></script>
<script src="_resources/js/mui.pullToRefresh.material.js"></script>
<script src="config.js"></script>
<script src="_resources/js/auth.js"></script>
<script src="_resources/js/api_common.js"></script>
<script src="_resources/js/api_appl.js"></script>
<!--<script src="_resources/js/update.js"></script>-->
<script type="text/javascript" charset="utf-8">
mui.plusReady(function() {
API.init();
});
</script>
</body>
</html>
0 个回复