仓库中添加内置的demo

This commit is contained in:
gongxh
2025-07-28 14:26:19 +08:00
parent 43446f031d
commit 65be0498cc
414 changed files with 14456 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
/**
* @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;