applicationCategory.js 716 B

123456789101112131415161718192021222324252627
  1. applicationCategory_parameter = {};
  2. function applicatiionCategory_list() {
  3. $.ajax({
  4. type : 'get',
  5. dataType : 'json',
  6. url : '../jaxrs/applicationcategory/list',
  7. xhrFields : {
  8. 'withCredentials' : true
  9. },
  10. crossDomain : true
  11. }).done(function(json) {
  12. $('#result').html(JSON.stringify(json, null, 4));
  13. if (json.type == 'success') {
  14. var str = '<table border="1" width="100%">';
  15. str += '<tr><th>applicationCategory</th><th>count</th></tr>';
  16. $.each(json.data, function(index, item) {
  17. str += '<tr>';
  18. str += '<td>' + item.applicationCategory + '</td>';
  19. str += '<td>' + item.count + '</td>';
  20. str += '</tr>';
  21. });
  22. str += '</table>';
  23. $('#content').html(str);
  24. }
  25. });
  26. }