微信小程序的一个 bug…
文章目录
在微信小程序调用 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 了。
相关代码如下图。
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论