jQuery的ajax和遍历数组json代码

jQuery.ajax({
           type: "POST",
           url: "server.json",
           dataType:'json',
           data: "",
           success: function(msg){
               var title = "";
               jQuery.each(msg,function(key,value){
                    alert(value.ec_id+"    "+value.ec_title);
               })
           }
    });

原文地址:https://www.cnblogs.com/zhja/p/2729604.html