数据驱动、坚持为客户提供有价值的服务和内容
首先通过wx.getNFCAdapter()来获取nfc实例
然后调用startDiscovery获取当前手机nfc状态
已经打开了nfc的就可以调用监听方法onDiscovered
监听到数据后setData把数据展示出来就ok了,方法如下
nfcRead() { console.log('nfc') const nfc = wx.getNFCAdapter() this.nf