var test = true; window.onload = function (ev) { init(); } init = function () { getOrderInfo(1, 10); test(); } test = function () { $.ajax({ url: "/new/php/ip.php", success: function (data) { console.log(data); // console.log(JSON.parse(data).sGeobytesCountryTitle); // console.log(JSON.parse(data).sGeobytesCity); // console.log(JSON.parse(data).sGeobytesIpAddress); } }) } getOrderInfo = function (pageindex, pagesize) { var parameter = urlEncode(["SelectIpAddress", pageindex, pagesize]); $.ajax({ type: "post", url: "/new/php/index.php", data: {mode: parameter}, dataType: "json", success: function (data) { if (data.length == 0 || data == -1) { $("#loading").css({"display": "none"}); $("#warp").css({"display": "table-row-group"}); var th = '