$(document).ready(function(){var o=function(o,n,t){function e(o){return i=o,this}function r(){return $.ajax({url:d+i,type:"get",dataType:"json",success:function(o){o?(u=u.concat(o),a++):console.error("获取数据失败"),a===c&&($("#demo").DataTable({data:u,columns:[{data:"name"},{data:"position"},{data:"salary"},{data:"office"}],paging:!1,retrieve:!0,destroy:!0}),$("input").remove(),$("#demo_filter").remove(),$("#demo").css("display","block"),window.print(),a=0,document.body.ML=s,document.location.reload())},error:function(){console.log("获取数据失败")}}),this}var i=1,a=0,c=5,d="http://localhost:3000/",u=[],s=document.body.innerHTML;return{reqJSON:function(o){return e(o),r(),this}}}(window,document),n=function(){for(i=1;i<=5;i++)o.reqJSON(i)};$(".print").click(n)});
//# sourceMappingURL=main.min.js.map
