为什么wx.openCard没反应
[代码]if[代码] [代码]( [代码][代码]typeof[代码] [代码]wx.openCard === [代码][代码]'function'[代码] [代码]) {[代码][代码] [代码][代码]//console.log(wx.openCard)[代码][代码] [代码][代码]wx.openCard({[代码][代码] [代码][代码]cardList: [[代码][代码] [代码][代码]{[代码][代码] [代码][代码]cardId: [代码][代码]'bp*****************************Bw'[代码][代码],[代码][代码] [代码][代码]code: [代码][代码]'9***********2'[代码][代码] [代码][代码]}[代码][代码] [代码][代码]],[代码][代码] [代码][代码]success: [代码][代码]function[代码][代码](res) {[代码][代码] [代码][代码]console.log([代码][代码]'***********card success************'[代码][代码]);[代码][代码] [代码][代码]console.log(res);[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail: [代码][代码]function[代码][代码](res) {[代码][代码] [代码][代码]console.log([代码][代码]'***********card fail************'[代码][代码]);[代码][代码] [代码][代码]console.log(res);[代码][代码] [代码][代码]},[代码][代码] [代码][代码]complete:[代码][代码]function[代码][代码](res) {[代码][代码] [代码][代码]console.log([代码][代码]'***********card complete************'[代码][代码]);[代码][代码] [代码][代码]console.log(res);[代码][代码] [代码][代码]},[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码]else[代码][代码]{[代码][代码] [代码][代码]console.log([代码][代码]'***********card error************'[代码][代码]);[代码][代码] [代码][代码]}[代码][代码] [代码][代码]console.log([代码][代码]'***********card end************'[代码][代码]);[代码]无论怎么弄,都只输出***********card end************。
微信开发者工具的基础库1.1.1。