data.goodList.each(function(i,_this){
//在这里拼接
})
还有一种方法使用template.js
$(document).ready(function(){$("#b01").click(function(){
htmlobj=$.ajax({url:"csdaizuo.com",async:false})
$("#myDiv").html(htmlobj.responseText)
})
})
像这样,页面在不加载的情况下就可以获取数据,这就是ajax,所以您不需要考虑页面重新加载的情况,
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)