利用wx.chooseImage返回的临时文件路径循环渲染问题
发布于 5 年前 作者 ping50 15931 次浏览 来自 问答

调用wx.chooseImage上传图片,得到图片的临时路径tempFilePaths,在wxml里用wx:for{{tempFilePaths}}循环渲染出错:

VM3555:2 Failed to load image http://127.0.0.1:56229/tmp/wx210839d33ea2e4dc.o6zAJsx84ds_sH7gAD8snTwFfKM4.T7EOmGiw0vQwf47e1ac77ff73e3a8645548df7bb6d04.jpg,http://tmp/wx210839d33ea2e4dc.o6zAJsx84ds_sH7gAD8snTwFfKM4.dfWxZuh7SAVVd0ad6771913fd2ca2ad04433b46f2d26.jpg

the server responded with a status of 404 (HTTP/1.1 404 Not Found) 

From server 127.0.0.1

回到顶部