The browser console shows that the object has this attribute, but the console prints this attribute as undefined

The console prints an object and you can see its internal properties.

But the console prints out undefined. The reason is that my object is returned in the background. Due to the asynchronous nature of js, data has not been assigned yet. After delayed output, the values ​​of these attributes can be obtained. 

 

Guess you like

Origin blog.csdn.net/fqqbw/article/details/126311064