详细问题描述
[内容]
angularjs写的页面,wap2app不能匹配URL。
重现步骤
[步骤]
首页为:http://192.168.1.101:53342/chargingStation-webapp/station/src/index.html#/index/index
通过angularjs路由跳转到:http://192.168.1.101:53342/chargingStation-webapp/station/src/index.html#/charge/often
[结果]
不能匹配到often。同时使用plus.webview.currentWebview().getURL()获取到的永远是首页的地址
[期望]
能匹配到often,并且打开心的webview
运行环境
[系统版本]
MACOS 10.13.1
[浏览器版本]
Android 6.0
[IDE版本]
HBuilder 8.8.6.201711101409
[mui版本]
附件
[代码片段]
sitemap中配置
{
"webviewId": "often",//收藏
"matchUrls": [
{
"hash": "#/charge/often"
}
]
}
[安装包]
联系方式
[QQ]174481918
[电话]15868474170
r***@jopool.com (作者)
页面跳转hash是会变的
2017-11-16 10:56
回梦無痕
回复 r***@jopool.com:然而对于webview来说,你的页面是没有刷新的。浏览器会认为只是内部在刷新数据。
2017-11-16 11:12