利用wx.chooseImage返回的临时文件路径循环渲染问题

发布于 6 年前作者 ping5016119 次浏览最后编辑 6 年前来自 ask

调用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

1 回复