在微信小程序调用 wx.request() 方法,传入的参数的 data 属性不能是字符串 function.
wx.request({ url: "http://localhost/", data: "function" });
// error: data should not be Function初步判断可能忘记调用 typeof 了。
相关代码如下图。

在微信小程序调用 wx.request() 方法,传入的参数的 data 属性不能是字符串 function.
wx.request({ url: "http://localhost/", data: "function" });
// error: data should not be Function初步判断可能忘记调用 typeof 了。
相关代码如下图。
