Chrome的所有功能都很好,但是当我使用Cordova将它导出到Android上时,似乎什么也没有出现。
只有白色的屏幕。
<body unresolved fullbleed>
<app-router>
<app-route path="/" import="/elements/kwikblood-fblogin.html"></app-route>
<app-route path="/panel" import="/elements/kwikblood-panel.html"></app-route>
</app-router>
<script src="scripts/app.js"></script>
</body>基本上这就是我所做的
发布于 2015-02-21 04:05:57
问题归结为使用不同的文件夹结构的不同平台遵循这种模式file://**/www/index.html。
您可以通过为主页创建2条路径来解决这个问题。
<app-router>
<app-route path="/" import="pages/home-page.html"></app-route>
<app-route path="/**/www/index.html" import="pages/home-page.html"></app-route>
<app-route path="*" import="pages/not-found.html"></app-route>
</app-router>
发布于 2015-10-13 15:52:12
正如他在评论中提到的那样,这是因为文件路径在cordova中被咀嚼。
我使用的是不同的路由器,它在cordova:https://github.com/atotic/excess-router下工作。
https://stackoverflow.com/questions/27704448
复制相似问题