为什么在onload时,request数据后改变data中图片地址,真机上不显示图片?但是开发工具上正常显示呢
为什么在onload时,request数据后改变data中图片地址,真机上不显示图片?Why is the image address in data changed after requesting data during onload, but the image is not displayed on the real machine?
为什么在onload时,request数据后改变data中图片地址,真机上不显示图片?为什么在onload时,request数据后改变data中图片地址,真机上不显示图片?但是开发工具上正常显示呢
Why does the address of the picture in the data change after the request data when onload, and the picture is not displayed on the real machine? But what about the normal display on the development tool
回答:
可以先把图片复制到浏览器看下是否有效
查看下图片地址 看看会不会是拼接问题 或者将地址复制到浏览器上看看是否有效