$(function(){ $.getjson("../js/json/cases.json", "", function(data) { var str = '',str1 = ''; $.each(data.casedata, function(i, item) { str1 = ''; $.each(item.schoollist, function(i, items) { str1 += '
  • '+ '
    '+items.title+'
  • '; }) str += '

    '+item.city+'

    ' }) $('.successcase').html(str) }); })