jjb-lc-designable
Version:
基于alibaba-designable源码二次封装的表单设计器。
19 lines • 414 B
JavaScript
function getGlobalThis() {
try {
if (typeof self !== 'undefined') {
return self;
}
} catch (e) {}
try {
if (typeof globalThisPolyfill !== 'undefined') {
return globalThisPolyfill;
}
} catch (e) {}
try {
if (typeof global !== 'undefined') {
return global;
}
} catch (e) {}
return Function('return this')();
}
export const globalThisPolyfill = getGlobalThis();