Data is requested in vue, but cannot be printed.


Mar.18,2021

ajax request is asynchronous. After your data request is successful, console.log () has been executed. You need to mention this sentence in if (res.data.code = 100)


do you declare _ that = this?? If so, please console.log (_ that.applyDataArr);


isn't $http asynchronous? If you execute console first, you won't be able to print it out.

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