- response headers 始终是 charset=iso-8859-1
[代码]wx.request({[代码][代码] [代码][代码]url: app.globalData._server + [代码][代码]'/weixin/kuaidi/query'[代码][代码],[代码][代码] [代码][代码]method: [代码][代码]'POST'[代码][代码],[代码][代码] [代码][代码]dataType:[代码][代码]'json'[代码][代码],[代码][代码] [代码][代码]// responseType:'arraybuffer',[代码][代码] [代码][代码]header: {[代码][代码] [代码][代码]"Content-Type"[代码][代码]: [代码][代码]"application/x-www-form-urlencoded"[代码][代码] [代码][代码]},[代码][代码] [代码][代码]data:{[代码][代码] [代码][代码]expCode: SHOPPING_NAME,[代码][代码] [代码][代码]expNo: SHOPPING_CODE[代码][代码] [代码][代码]},[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]wx.hideLoading();[代码][代码] [代码][代码]that.setData({ wulMesge: res.data.data });[代码][代码] [代码][代码]console.log(res.data.Traces);[代码][代码] [代码][代码]}[代码][代码] [代码][代码]});[代码][图片] 中文会乱码 [图片] 我需要utf-8格式的响应,怎么写都是 charset=iso-8859-1,请问大佬怎么解决,多谢
2018-03-15 - map点标记真机不显示
[代码]<[代码][代码]map[代码] [代码]id[代码][代码]=[代码][代码]"myMap"[代码] [代码]markers[代码][代码]=[代码][代码]'{{markers}}'[代码] [代码]controls[代码][代码]=[代码][代码]'{{controls}}'[代码] [代码]scale[代码][代码]=[代码][代码]'10'[代码] [代码]latitude[代码][代码]=[代码][代码]'22.55'[代码] [代码]longitude[代码][代码]=[代码][代码]'114.05'[代码] [代码]show-location [代码][代码]style[代码][代码]=[代码][代码]'width:750rpx;height:500rpx;'[代码][代码]/>[代码][代码]var[代码] [代码]markers = [{[代码][代码] [代码][代码]id:1,[代码][代码] [代码][代码]latitude: 22.55,[代码][代码] [代码][代码]longitude: 114.05,[代码][代码] [代码][代码]title:[代码][代码]'深圳'[代码][代码],[代码][代码] [代码][代码]iconPath:[代码][代码]'/images/location.png'[代码][代码],[代码][代码] [代码][代码]width: 30,[代码][代码] [代码][代码]height: 30[代码][代码] [代码][代码]}];[代码][代码] [代码][代码]that.setData({[代码][代码] [代码][代码]markers: markers[代码][代码] [代码][代码]})[代码]模拟器正常 [图片] 真机不显示 [图片] 请问怎么解决
2017-11-28