开发者工具无法进入远程调试
不知为何发送request给server result永远返回{data: {…}, header: {…}, statusCode: 200, errMsg: “request:ok”},
清除了缓存还是不行,开启远程调试也进不去,用普通的request就能进去的。
是不是header/method/data的问题?
qcloud.request({ url: newPublishUrl, login: true , header: { "Content-Type" : "application/x-www-form-urlencoded" }, method: "POST" , data: params, success(result) { console.log( 'request success' , result); }, fail(error) { console.log( 'request fail' , error); }, complete() { console.log( 'request complete' ); wx.hideLoading(); } }); |