今天给大家安利一个属性,console.table()。

它的作用在控制台以表格的形式显示object。这样看起来是不是更方便了呢。

console.table(),在控制台以表格形式输出对象

var aaa = [
    {index:0,name:"111",age:"222"},
    {index:1,name:"111",age:"222"},
    {index:2,name:"111",age:"222"},
    {index:3,name:"111",age:"222"}
    ]

console.table(aaa);

 


 
                    
            
                

相关文章:

  • 2022-02-02
  • 2021-08-29
  • 2022-12-23
  • 2022-03-09
  • 2021-12-03
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-01
  • 2022-12-23
  • 2021-08-15
  • 2022-01-23
  • 2021-04-02
相关资源
相似解决方案