dataServers_parameter = {}; function dataServers_list() { $('#content').html(''); $('#result').html(''); $.ajax({ type : 'get', dataType : 'json', contentType : 'application/json; charset=utf-8', url : '../jaxrs/dataservers', 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 = '
| order | name | host | port | database | operate |
|---|---|---|---|---|---|
| ' + o.order + ' | '; str += '' + o.name + ' | '; str += '' + o.host + ' | '; str += '' + o.port + ' | '; str += '' + o.database + ' | '; str += ''; str += 'edit '; str += 'delete'; str += ' | '; str += '
| ' + o.databaseType + ' | '; str += '' + o.status + ' | '; str += '' + o.message + ' | '; str += '|||