Home > front end >  Why the JS object clearly some attributes, is undefined when reading? consult
Why the JS object clearly some attributes, is undefined when reading? consult

Time:02-01

Why am I in the framework of the react JSX components defined in the object's properties in the property is Undefined
The users in the object the meId this attribute name and attribute value is there, but can't read it out




On both. And [] cannot read object attribute
Then I found even the object in the prototype chain some method is undefined




So I try to create a new object with the same property names, found an error, identifiers or keyword can not keep up with the digital text, after that the users object attribute name why can be printed, but can't read?



O bosses give advice or comments, I am the react beginners
  • Related