SOURCE

console 命令行工具 X clear

                    
>
console
var rootUrl = "http://115.28.170.36:1225/"
$(function(){
  $("#btnGetPoints").click(function(){
    $("#statusRes").html("");
    $("#result").html("");
    $.get(rootUrl+"event/points",function(data,status){
      $("#statusRes").html("状态: " + status);
      $("#result").html("状态: " + JSON.stringify(data, null, 4));
    });
  });
  $("#btnGetLastEvents").click(function(){
    $("#statusRes").html("");
    $("#result").html("");
    $.get(rootUrl+"event/lastEvents?maxCount=2",function(data,status){
      $("#statusRes").html("状态: " + status);
      $("#result").html("状态: " + JSON.stringify(data, null, 4));
    });
  });
  
});
<div>
  <button id="btnGetPoints">获取点位列表</button>
  <button id="btnGetLastEvents">获取最后N个事件</button>
</div>
<div id="statusRes">
</div>
<div>
  <pre id="result"></pre>
</div>