npm install fetch-jsonp --save
import fetchJsonp from 'fetch-jsonp'
fetchJsonp('http://',{ method:'get' }).then(res=>{ return res.json() }).then(data=>{ //请求成功 console.log(data); //返回数据 }).catch(error=>{ //请求失败 })