$(".btn").click(function(){
$.ajax({
type:"POST",
url:"../../js/info.json",
dataType: "json",
success: function(data){
var str="<ul>";
$.each(data.list,function(i,n){
str+="<li>"+n["name"]+"</li>";
})
str+="</ul>";
$("#date").append(str);
/*var html = template('test',data);
$("#date").html(html);*/
}
});
})

相关文章:

  • 2021-07-13
  • 2021-11-22
  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
  • 2021-10-02
猜你喜欢
  • 2021-11-11
  • 2021-12-13
  • 2022-02-28
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
相关资源
相似解决方案