cannfc(){
let NFCAdapter = wx.getNFCAdapter()
console.log(NFCAdapter)
NFCAdapter.startDiscovery({success:(e)=>{
console.log('开始监听贴卡',e)
}})
NFCAdapter.onDiscovered(function callback(e){
console.log('注册贴卡监听回调',e)
})
}
已解决