ionic ng-src 在网页显示,但是导出apk在android手机中运行不显示图片
解决方法参照:
http://stackoverflow.com/questions/29896158/load-image-using-ng-src-in-android-ionic-aplication
步骤:
(1)安装 cordova-plugin-whitelist
y@y: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">
经过以上步骤设置,运行成功!