Files
park/public/web/static/js/global.js

28 lines
296 B
JavaScript
Raw Permalink Normal View History

2025-12-01 11:19:23 +08:00
const config = {
userName:'',
userPhone:'',
usercompany:'',
EMPUID:''
}
let bindToGlobal=function(obj, key){
if (typeof window[key] === 'undefined') {
window[key] = {};
}
for (let i in obj) {
window[key][i] = obj[i]
}
}
bindToGlobal(config,'_const')