RequestTask.abort() 又失效了!!
发布于 6 年前 作者 mengming 899 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)
  • 预期表现
  • 复现路径
  • 提供一个最简复现 Demo
const requestTask = wx.request({  url: url,
  data: {    x: '',    y: ''
  },  header: {    'content-type': 'application/json'
  },
  success(res) {    console.log(res.data)
  }

})

console.log(requestTask) // 打印结果为 undefined 

requestTask.abort() // 取消请求任务
1 回复

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)

回到顶部