How does the data requested by axios render to the page through data?

data(){
    return{
        abc:[]
    }
}

data request:

created() {
    axios
      .get("http://goods")
      .then(response => {
           this.abc = (JSON.parse(response.data));
      })
      .catch(error => {
        console.log("");
      });
      
  },

data format:

problem: data can never be rendered to the page.


this.abc = response.data;

response.data is an array. Just assign a value directly


(what does the JSON.parse (response.data)); outer parenthesis) mean, make sure the data is requested? When you request the data, you can use it directly. Is it possible that


can be directly assigned to the data written in your dom


this points to the problem

created() {
    *let _this = this*
    axios
      .get("http://goods")
      .then(response => {
          *_this.abc = response.data;*
      })
      .catch(error => {
        console.log("");
      });
      
  },
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-1b31a1e-3415c.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-1b31a1e-3415c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?