//获取全部 function getRoamAll(){ $.ajax({ type : "post", url : "../../easyAPI/roam/getRoam.action", contentType : "application/json;charset=utf-8", success : function(data) { showRoams(data); }, error : function(XMLHttpRequest, textStatus, errorThrown) { console.log("获取路径信息失败!"); } }); }