mDNS 服务发现的事件的回调函数,不返回信息
wx.startLocalServiceDiscovery({ serviceType: '_http._tcp.', success: function (res) { console.log(111,res) wx.onLocalServiceFound(function (obj) { console.log(222,obj) }) wx.onLocalServiceResolveFail(function (obj){ console.log(333,obj) }) wx.onLocalServiceLost(function (obj){ console.log(444,obj) }) wx.onLocalServiceDiscoveryStop(function (obj){ console.log('监听到搜索停止事件') }) } })