Vue lifecycle: why $el outputs this (vue instance objects for undefined, before beforeMount), but $el has a value.

for example, in the beforeCreated hook:

   


I have encountered related problems before. Let me share with you related problems

.

the value of $el has changed when you use your browser to view the contents of this. You can use

.
console.log(JSON.stringify(this));

take a look at the value of $el inside.


https://stackoverflow.com/que.


look at the picture


because what is output in this is a reference to the object, which is later changed

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e50cf7-450d5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e50cf7-450d5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?