Why can't you get the index for this form of data in JS?

clipboard.png

clipboard.png

May.22,2021

  1. post how your code is obtained
  2. console output only represents the final state when you click to expand, not console.log at that time, when your data may be asynchronous, the data has not yet come back
  3. .

this is an empty array, _ _ ob__ is the attribute that vue adds to this array, like the length in [] .length , it is an attribute of the object, not an element of the array. You can't access an element through a numeric index because it's an empty array.

clipboard.png


recommend an answer https://codeshelper.com/q/10.

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-1b3baca-2c293.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-1b3baca-2c293.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?