l***@163.com
l***@163.com
  • 发布:2025-10-10 11:16
  • 更新:2025-10-10 11:16
  • 阅读:19

调用本地插件没有反应

分类:插件市场
    const dyLogin = uni.requireNativePlugin('dylogin');  
    console.log(dyLogin);  
    if (dyLogin) {  
        dyLogin.clickAuth()  
    } else {  
        console.log('插件加载失败');  
    }  

dyLogin输出{
"clickAuth": "function() { [native code] }",
"removeAllEventListeners": "function() { [native code] }",
"addEventListener": "function() { [native code] }",
"getAuthInfo": "function() { [native code] }"
},这是加载插件成功了么,但是调用方法没有任何反应,也不报错

2025-10-10 11:16 负责人:无 分享
已邀请:

要回复问题请先登录注册