h***@protonmail.com
h***@protonmail.com
  • 发布:2022-04-06 20:32
  • 更新:2022-04-06 23:46
  • 阅读:405

uni.getBluetoothAdapterState app报错,小程序不存在问题

分类:uni-app
uni.openBluetoothAdapter({  
    success: (_) => {  
        uni.getBluetoothAdapterState({  
            success: (_) => {  
                this.startDiscoveryDevice()  
            },  
            fail: (_) => {  
                uni.showToast({  
                    title: "请打开手机蓝牙",  
                    icon: "error"  
                })  
            }  
        })  
    }  
})

一直返回TypeError: this.getCallbackIDByFunction is not a function。找了半天也没找到这个错误的原因是什么,求解。

2022-04-06 20:32 负责人:无 分享
已邀请:
小枫叶

小枫叶 - 外包接单加v:wlmk1234567 注明来意

试试 uniapp hello 模板内调用会有这样的问题么

h***@protonmail.com

h***@protonmail.com (作者)

解决了,绝了。Vue3就报错,Vue2就没问题。
TypeError: this.getCallbackIDByFunction is not a function

该问题目前已经被锁定, 无法添加新回复