datas_parameter = {}; function datas_list() { $('#content').html(''); $('#result').html(''); $.ajax({ type : 'get', dataType : 'json', contentType : 'application/json; charset=utf-8', url : '../jaxrs/datas', xhrFields : { 'withCredentials' : true }, crossDomain : true }).done(function(json) { $('#result').html(JSON.stringify(json.data, null, 4)); if (json.type == 'success') { if (json.data) { var str = ''; str += ''; $.each(json.data, function(k, v) { str += ''; $.each(v, function(i, o) { str += ''; str += ''; str += ''; str += ''; str += ''; }); }); str += '
orderdataServeroperate
' + k + ' ' + 'add'; +'
' + o.order + '' + o.dataServer + ''; str += 'edit '; str += 'delete'; str += '
'; $('#content').html(str); } } else { failure(data); } }); }