请问image标签中src怎么加请求的header
例如服务端在接收图片请求时,需要获得请求header中的数据,请问在image标签中如何请求
<image src=“https://my.server.com?getpic=photo1” />
正常请求:
wx.request({url: "https://my.server.com?getpic=photo1",header:{ "Content-Type": "application/json;charset=utf-8", "myAuth" : "1234abc"},success: function(e){ console.log("image ", e, tmpInfo.key)},}) |
