4***@qq.com
4***@qq.com
  • 发布:2024-04-17 16:01
  • 更新:2024-04-18 08:36
  • 阅读:71

uni .scanCode() 对着办公桌和电脑屏幕也可以识别出值,实际是没有码的

分类:uni-app
  uni  
    .scanCode()  
    .then(res => {  

      if (res.errMsg !== 'scanCode:ok' || !res.result) {  
        throw Error  
      }  
      console.log(res.result)  // 有值  
    })  
    .catch(() => {  
      uni.showToast({ title: '扫描失败,请重试', icon: 'none' })  
    })
2024-04-17 16:01 负责人:无 分享
已邀请:
套马杆的套子

套马杆的套子 - 没有解决不了的问题,只有解决不完的问题

要回复问题请先登录注册