team icon indicating copy to clipboard operation
team copied to clipboard

微信小程序wx.request中返回值的编码

Open shiqianrongsx opened this issue 6 years ago • 0 comments

闂锛氬井淇″皬绋嬪簭寮€鍙戜腑锛屽彂閫佷簡涓€涓獁x.request璇锋眰锛岃繑鍥炵殑鏁版嵁鍙互鍦ㄥ紑鍙戣€呭伐鍏蜂腑姝e父灞曠ず锛屼絾鏄湪鎵嬫満绔嵈涓嶈兘灞曠ず

瑙e喅鍔炴硶锛?/p>

  • 閫氳繃杩滅▼璋冭瘯鍔熻兘鎵撴柇鐐逛箣鍚庯紝鍙戠幇鎵嬫満绔彲浠ユ甯稿彂閫乺equest璇锋眰锛屽苟涓旀帴鍙d篃杩斿洖浜嗘暟鎹紝浣嗘槸鍗存棤娉曡繘鍏uccess銆乫ail銆乧omplete鍥炶皟鍑芥暟涓?/p>

  • 灏嗚鎺ュ彛涓庡叾浠栨帴鍙o紙鍙互鍦ㄦ墜鏈虹姝e父灞曠ず鐨勬帴鍙o級瀵规瘮锛屽彂鐜拌鎺ュ彛鐨勪笉鍚屼箣澶勬槸鍝嶅簲澶翠腑鐨刢ontent-type鏄€渁pplication/x-javascript;charset=gbk鈥?/p>

  • 鏌ョ湅寰俊寮€鍙戣€呮枃妗o紝鍙戠幇寰俊灏忕▼搴忓彧鏀寔utf-8鐨勭紪鐮佹柟寮忥紝瀵逛簬闈濽TF-8 缂栫爜锛屽皬绋嬪簭浼氬皾璇曡繘琛岃浆鎹紝浣嗘槸浼氭湁杞崲澶辫触鐨勫彲鑳姐€傚鏋滃け璐ョ殑璇濓紝瀹冨苟娌℃湁缁欏嚭浠讳綍鍝嶅簲锛屼篃涓嶄細杩涘叆success銆乫ail銆乧omplete鍥炶皟鍑芥暟涓?/p>

寰俊寮€鍙戣€呮枃妗o細https://developers.weixin.qq.com/miniprogram/dev/api/api-network.html

shiqianrongsx avatar Jul 27 '18 11:07 shiqianrongsx