添加显示不可枚举的属性

This commit is contained in:
shijian 2023-11-23 22:54:05 +08:00
parent d1cec2aa35
commit 7e56e00ae2
1 changed files with 1 additions and 1 deletions

View File

@ -51610,7 +51610,7 @@ new Promise(resolve=>{
}
else if(typeof arg=='object'){
let msg='';
for(const name in arg){
for(const name of Object.getOwnPropertyNames(arg)){
msg+=`${name}: ${parse(arg[name])}<br>`;
}
return `<details><summary>${parse(arg)}</summary>${msg}</details>`;