当前第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 的 render 方法中 h 是什么?
简书 jsplumb使用
vue.js中指令的作用是什么?
什么时候使用vue.js
vue.js支持移动端开发吗
浅谈vue-cli初始化vue项目的项目结构
vue.js中如何写注释
vue.js中如何注册组件
nodejs和vuejs之间的差异
vue.js 学习之二:数据驱动开发
更多相关阅读请进入《vue.js》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » vue.js图片怎么渲染