{
"name": "TQCTestUniPlugin",
"id": "TQCTestUniPlugin",
"version": "1.0.0",
"description": "uni示例插件",
"_dp_type": "nativeplugin",
"_dp_nativeplugin": {
"ios": {
"plugins": [{
"type": "module",
"name": "TQCTestUniPlugin-TQCModule",
"class": "TQCModule"
}],
"frameworks": ["WidgetKit.framework"],
"integrateType": "framework",
"deploymentTarget": "14.0"
}
}
}
var testModule = uni.requireNativePlugin("TQCTestUniPlugin-TQCModule")
testAsyncFunc() {
testModule.testAsyncFunc({
'name': 'uni-app',
'age': 1
}, (ret) => {
console.log('testAsyncFunc 回调:', ret)
uni.showToast({
title: 'testAsyncFunc 成功: ' + ret,
icon: "none"
})
})
},
0 个回复