当前第2页 返回上一页
本地美食
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | <template>
<div>
<h1>美食</h1>
<table border= "1" >
<tr>
<td>美食</td>
<td>美食图片</td>
<td>美食价格</td>
</tr>
<tr v- for = "i in footlist" >
<td>{{i.name}}</td>
<td><img :src= "i.img" height= "100" width= "100" ></td>
<td>{{i.price}}</td>
</tr>
</table>
</div>
</template>
<script>
export default {
name: "foot" ,
data: function () {
return {
footlist: []
}
},
mounted() {
var aa = this. $route .params.id;
this.axios({
url: '/api/app/foot/' ,
data: {aa:aa},
method: 'post'
}).then((res) => {
if (res.data.code == 200) {
this.footlist = res.data.message;
console.log(res)
}
})
}
}
</script>
<style scoped>
</style>
|
相关免费学习推荐:javascript(视频)
以上就是vue.js图片怎么渲染的详细内容,更多文章请关注木庄网络博客!
返回前面的内容
相关阅读 >>
vue.js中的插槽是什么
vue.js中的el什么意思
vue.js有几种安装方式
vue.js有什么优点
vue.js支持哪些浏览器
vue.js有哪些ui
vue.js中怎么移除数组值
vue.js中如何获取url的值
vue.js是前端还是后端
vue.js为什么不能支持ie8?
更多相关阅读请进入《vue.js》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » vue.js图片怎么渲染