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);
               })
           }
    });

posted @ 2012-10-18 15:33  zhjahch  阅读(9828)  评论(0编辑  收藏  举报