微信小程序 image组件遇到的问题
更新:HHH   时间:2023-1-7


远程图片

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

可显示

'https://cache.tdyun.com/upload/information/20200622/114/21534.jpg',
"https://cache.tdyun.com/upload/information/20200622/114/21535.jpg",
"https://cache.tdyun.com/upload/information/20200622/114/21536.jpg",
"https://cache.tdyun.com/upload/information/20200622/114/21537.jpg"

不能显示

'https://cache.tdyun.com/upload/information/20200622/114/21538.jpg',
"https://cache.tdyun.com/upload/information/20200622/114/21539.jpg",
"https://cache.tdyun.com/upload/information/20200622/114/21541.jpg",
"https://cache.tdyun.com/upload/information/20200622/114/21542.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组件遇到的问题,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对天达云网站的支持!
如果你觉得本文对你有帮助,欢迎转载,烦请注明出处,谢谢!

返回web开发教程...