<div id="sj"> <div v-for="r in rows" style="border: 1px solid #ddd;" id="也相应动态显示{{r.id}}"> <span>{{r.name}}</span> <span>{{r.address}}</span> </div></div>$.ajax({ type:"get", url:"sj.json", data:"", dataType:'json', contentType: "application/json; charset=utf-8", success:function(data){ var slist = data.sjList; var v = new Vue({ el:"#sj", data:{ rows:slist } }); } });
添加回答
举报
0/150
提交
取消