[]TS项目怎么通过OC调用一个JS函数
ts中的代码:
class Native {
private setNativeListener(): void {
alert("oc call me to do someing");
}
}
oc代码:
[[conchRuntime GetIOSConchRuntime] runJS:@"Laya.Native.setNativeListener()"];
Laya改成Window也不行!
急急急!
class Native {
private setNativeListener(): void {
alert("oc call me to do someing");
}
}
oc代码:
[[conchRuntime GetIOSConchRuntime] runJS:@"Laya.Native.setNativeListener()"];
Laya改成Window也不行!
急急急!
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
qian
赞同来自: