微信小程序 image组件坑
程序员文章站
2022-06-24 11:07:01
远程图片 在真机上测试时 image组件只能显示http请求的图片, 对https 与 //xxx.xxx.xx 之类的不能显示。 可显示 不能显示 ......
远程图片
在真机上测试时 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"