微信小程序 image组件遇到的问题

远程图片

在真机上测试时 image组件只能显示http请求的图片, 对https 与 //xxx.xxx.xx 之类的不能显示。

可显示

'http://img.alicdn.com/i2/83231071/TB2B03RsYplpuFjSspiXXcdfFXa_!!83231071.jpg',
"http://img.alicdn.com/i2/83231071/TB2uTODub0kpuFjy0FjXXcBbVXa_!!83231071.jpg",
"http://img.alicdn.com/i3/83231071/TB2sTNajr_0UKFjy1XaXXbKfXXa_!!83231071.jpg",
"http://img.alicdn.com/i2/83231071/TB2r3S5q30kpuFjSspdXXX4YXXa_!!83231071.jpg"

不能显示

'https://img.alicdn.com/i2/83231071/TB2B03RsYplpuFjSspiXXcdfFXa_!!83231071.jpg',
"https://img.alicdn.com/i2/83231071/TB2uTODub0kpuFjy0FjXXcBbVXa_!!83231071.jpg",
"https://img.alicdn.com/i3/83231071/TB2sTNajr_0UKFjy1XaXXbKfXXa_!!83231071.jpg",
"https://img.alicdn.com/i2/83231071/TB2r3S5q30kpuFjSspdXXX4YXXa_!!83231071.jpg"

'//img.alicdn.com/i2/83231071/TB2B03RsYplpuFjSspiXXcdfFXa_!!83231071.jpg',
"//img.alicdn.com/i2/83231071/TB2uTODub0kpuFjy0FjXXcBbVXa_!!83231071.jpg",
"//img.alicdn.com/i3/83231071/TB2sTNajr_0UKFjy1XaXXbKfXXa_!!83231071.jpg"

总结

以上所述是小编给大家介绍的微信小程序 image组件遇到的问题,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对安科网网站的支持!
如果你觉得本文对你有帮助,欢迎转载,烦请注明出处,谢谢!

相关推荐