优化游戏内控制台数组类型的显示内容

This commit is contained in:
shijian 2023-11-23 22:42:52 +08:00
parent 06f1424496
commit d1cec2aa35
1 changed files with 1 additions and 1 deletions

View File

@ -51585,7 +51585,7 @@ new Promise(resolve=>{
if(typeof arg!='string'){ if(typeof arg!='string'){
const parse=(obj)=>{ const parse=(obj)=>{
if(Array.isArray(obj)){ if(Array.isArray(obj)){
return `[${String(obj)}]`; return `[${obj.map(v=>parse(v))}]`;
}else if(typeof obj=='function'){ }else if(typeof obj=='function'){
return `Function`; return `Function`;
}else if(typeof obj!='string'){ }else if(typeof obj!='string'){