真机调试下,在 wx.request 之前有 debugger 断点会导致请求 pending
发布于 5 年前 作者 weidong 7703 次浏览 来自 官方Issues
Page({
  data: {},
  onLoad: function () {},
 

  onShow() {


   // 第二次触发 onshow 时请求会进入 pending

    debugger;


    wx.request({ url: 'https://cn.bing.com/ipv6test/test?FORM=MONITR' });
  }
});

回到顶部