mirror of
https://github.com/Gongxh0901/kunpolibrary
synced 2025-08-02 21:38:41 +00:00
20 lines
509 B
TypeScript
20 lines
509 B
TypeScript
/**
|
|
* @Author: Gongxh
|
|
* @Date: 2025-03-22
|
|
* @Description:
|
|
*/
|
|
|
|
function KunpoNativeCallJsHandler(jsonString: string) {
|
|
console.log("KunpoNativeCallJsHandler", jsonString);
|
|
// let json = JSON.parse(jsonString);
|
|
// let functionName = json.function;
|
|
// let args = json.args;
|
|
// let func = _global[functionName];
|
|
// if (func) {
|
|
// func(...args);
|
|
// }
|
|
}
|
|
|
|
|
|
let _global = globalThis || window || global;
|
|
(_global as any)["KunpoNativeCallJsHandler"] = KunpoNativeCallJsHandler; |