这个爱酱不太聪明 > vue获取ajax数据并动态渲染 vue获取ajax数据并动态渲染 2021-12-15 vue获取ajax数据并动态渲染 2021-12-15 实例 12345678910111213141516171819202122var app = new Vue({ el: "#app", data: { res: [] }})$(function () { $('.carousel').carousel({ interval: 5000 })});//查询content bannerwindow.onload = function () { $.ajax({ url: '', method: "GET", success(res) { app.res = res; return res; } });}; 123<div class="item" v-for="(image,index) in res"> <img :src="image.cover" data-holder-rendered="true"></div>