【发布时间】:2017-08-21 20:37:47
【问题描述】:
我正在制作一个离子应用程序并尝试使用cordova.InAppBrowser 在应用程序中打开一个链接,但是当我点击它时出现此错误
Application Error
net::ERR_FILE_NOT_FOUND (file:///android_assets/www/(item.url))
我的代码
<div ng-repeat="item in object.torrents" class="button-bar bar-dark" >
<a onclick="window.open('(item.url)', '_system' );" class="button">Open</a>
</div>
【问题讨论】:
-
那里的
(item.url)是什么? -
我正在从 json 中获取 url
-
你确定 item.url 给出了正确的 url,因为在错误消息中似乎 url 无效
-
是的,它提供了正确的 url 看看这个 plunk plnkr.co/edit/EbdFRHuVMCQY0SV7fqZS?p=preview
标签: angularjs cordova ionic-framework cordova-plugins