真机调试下,在 wx.request 之前有 debugger 断点会导致请求 pending
Page({[代码] [代码][代码]data: {[代码]},[代码] [代码][代码]onLoad: [代码][代码]function[代码] [代码]() {[代码]}, [代码] [代码][代码]onShow() {[代码] [代码] [代码] [代码] // 第二次触发 onshow 时请求会进入 pending [代码] [代码] [代码][代码]debugger;[代码] [代码] [代码] [代码] [代码][代码]wx.request({ [代码][代码]url: [代码][代码]'https://cn.bing.com/ipv6test/test?FORM=MONITR' [代码]});[代码] [代码][代码]}[代码][代码]});[代码] [图片]