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] }"
},这是加载插件成功了么,但是调用方法没有任何反应,也不报错
0 个回复