init commit

This commit is contained in:
iqudoo
2026-04-30 10:16:43 +08:00
commit 2c8eb4f587
44 changed files with 17574 additions and 0 deletions

17
src/services/env.js Normal file
View File

@@ -0,0 +1,17 @@
import _global from "../polyfill/_global";
export function execFunc(target, func, ...options) {
if (target) {
let funcs = func.split('.');
let instant = target;
while (funcs.length > 1) {
instant = instant[funcs.shift()];
}
if (instant && funcs.length == 1) {
if (instant.hasOwnProperty(funcs[0])) {
return instant[funcs[0]](...options);
}
}
}
}