Javascript cant access object property

前端 未结 0 1308
逝去的感伤
逝去的感伤 2020-12-12 15:01

I have this object:

 let test = {0:{
    firstProp:1,
    secondProp:2
}}

The problem is I cant access it like this:

test.0 

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题