Closed nickming closed 6 months ago
I'm not sure if you want code like the hello example. If not, can you provide some scenarios?
主要是想请教关于js_function宏的使用方法,我看demo中没有export的ts函数声明文件,导致无法匹配上类型;同时想请教create_threadsafe_function的用法,目前测试下来返回的都是null 目前是在api10和模拟器上跑的
其他问题 可以新提Issue 这个先关闭了
参考 https://github.com/ohos-rs/example/blob/main/ohos_rs_example/entry/src/main/ets/pages/Tsfn.ets#L16 参数必须使用剩余参数表达式接受,不支持一个个变量直接接受。会被方舟编译器优化掉。 @nickming
看起来都没问题了,强
另外注意下 使用的方法。如果是带错误的,第一个参数就是err 无报错就是null
Any JsFunction Example?