axios,fetch

vue axios方法封装

 

fetch使用

fetch('http://www.a.cymiki.com:3000/list/b')
      .then((res)=>{
        return res.json();
      })
      .then((res)=>{
        this.date=res
      })

  

 

posted @ 2017-10-27 10:38  fm060  阅读(130)  评论(0)    收藏  举报