在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/HTML/ ajax的patch方法請求報request:fail method is in

ajax的patch方法請求報request:fail method is invalid?

wx.request({
      url: dataUrl,
      method: 'PATCH',
      data: { "isRead": true },
      header: app.globalData.headerCommon,
      success: function (res) {
        if (res.data.code === 200) {
          typeof callback == 'function' && callback(res.data.data, setKey);
        }
        else {
          showError(res.data.msg);
        }
      },
      fail: function (error) {
        console.log(error);
      }
    })

這個接口直接報
圖片描述

不知道是什么原因?

回答
編輯回答
我以為

設置一下 contentType

2017年1月25日 13:35