优化游戏内控制台数组类型的显示内容
This commit is contained in:
parent
06f1424496
commit
d1cec2aa35
|
@ -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'){
|
||||||
|
|
Loading…
Reference in New Issue