[TOC]
## 1.在html页面里取数据
```
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
<script src="https://cdn.bootcss.com/vue/2.5.21/vue.js"></script>
<div id="app">
{{title}}
<img :src="img" alt="">
</div>
<script>
var vm = new Vue({
el: "#app",
data: {
msg: "helloworld",
img: "",
title: "",
},
beforeCreate() {
var url = "https://douban.uieee.com/v2/movie/top250";
$.get(url, res => {
var data = res.subjects[0]
console.log(data)
this.img = data.images.small,
this.title = data.title
})
},
})
</script>
```