Ionic Framework-HTML rel导入可在模拟器上工作,但不能在设备上工作
我试图将一个名为“helper.html”的特定html页面的内容(导入CSS和JavaScript文件的引用)导入另一个名为“navigation.html”的html页面。它可以在模拟器上工作(可以导入“helper.html”的CSS和JavaScript文件的引用),但不能在设备上工作(我使用的设备是Android平板电脑) 我的项目目录如下所示: 万维网 -模板Ionic Framework-HTML rel导入可在模拟器上工作,但不能在设备上工作,html,ionic-framework,html-imports,Html,Ionic Framework,Html Imports,我试图将一个名为“helper.html”的特定html页面的内容(导入CSS和JavaScript文件的引用)导入另一个名为“navigation.html”的html页面。它可以在模拟器上工作(可以导入“helper.html”的CSS和JavaScript文件的引用),但不能在设备上工作(我使用的设备是Android平板电脑) 我的项目目录如下所示: 万维网 -模板 navigation.html(模板文件夹内) -helper.html(www.helper.html内部) 在我的“
- navigation.html(模板文件夹内)
<!DOCTYPE html>
<html>
<head>
<link rel="import" href="helper.html">
</head>
<body>
<ion-view view-title="Navigation">
<ion-content>
// SOME CODES
</ion-content>
</ion-view>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" href="css/pathFindingstyle.css" />
<!-- Some JS files to be loaded, but I am not posting them here-->
</head>
<body >
<div id="draw_area"></div>
<div id="stats"></div>
</body>
</html>
//一些代码
在我的“helper.html”中,我有以下代码片段:
<!DOCTYPE html>
<html>
<head>
<link rel="import" href="helper.html">
</head>
<body>
<ion-view view-title="Navigation">
<ion-content>
// SOME CODES
</ion-content>
</ion-view>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" href="css/pathFindingstyle.css" />
<!-- Some JS files to be loaded, but I am not posting them here-->
</head>
<body >
<div id="draw_area"></div>
<div id="stats"></div>
</body>
</html>
有人能告诉我如何在android设备上实现这一点吗?谢谢 旧版本的Cordova for Android(您的Android设备中安装了什么版本的Android和Chrome?也许这会有所帮助:嗨,我在我的Android桌面上使用的是Android版本4.4.2和Chrome v 55.0.2883.91 Hanks,我通过将其部署到Android版本5.0解决了我的问题