解决方法参照:
http://stackoverflow.com/questions/29896158/load-image-using-ng-src-in-android-ionic-aplication
步骤:
(1)安装 cordova-plugin-whitelist
[email protected]:myapp1$ cordova plugins add cordova-plugin-whitelist
(2)确保config.xml配置文件
<access origin="*"/>
(3)index.html
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
经过以上步骤设置,运行成功!
时间: 2024-10-09 16:47:03