npm i axios-jsonp-pro -S
import axios from 'axios-jsonp-pro';
//使用
mounted(){
var url = "https://douban.uieee.com/v2/movie/in_theaters";
axios.jsonp(url).then(res=>{
this.movies = res.subjects;
})
}
//数据渲染
<template>
<div id="app">
<div class="item" v-for="item of movies" :key="item.id">
<p>{{item.title}}</p>
<!-- 在vue中属性要使用变量要在前面加: -->
<img :src="item.images.small" alt="">
</div>
</div>
</template>