xinggevip

Vue2.x Cli3.x Get请求数据
created(){ this.$http.get('http://jsonplaceholder.typ...
扫描右侧二维码阅读全文
30
2019/05

Vue2.x Cli3.x Get请求数据

created(){
    this.$http.get('http://jsonplaceholder.typicode.com/posts')
    .then(function(data){
      console.log(data);
      this.blogs = data.body.slice(0,10);
    })
  }
Last modification:May 30th, 2019 at 11:10 am
If you think my article is useful to you, please feel free to appreciate

Leave a Comment