function deepClone(params) {
const initData = params instanceof Array ?[]:{}
for (const i in params) {
initData[i]= params[i] instanceof Object ? deepClone(params[i]):params[i]
}
return initData
}
const initData = params instanceof Array ?[]:{}
for (const i in params) {
initData[i]= params[i] instanceof Object ? deepClone(params[i]):params[i]
}
return initData
}
2022-04-29