test.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8" />
  5. <title>main_entiity</title>
  6. <script src="./test.js"></script>
  7. <script>
  8. $(document).ready(function() {
  9. $('#get').click(function() {
  10. doget();
  11. });
  12. $('#put').click(function() {
  13. doput();
  14. });
  15. $('#post').click(function() {
  16. dopost();
  17. });
  18. $('#delete').click(function() {
  19. dodelete();
  20. });
  21. });
  22. </script>
  23. </head>
  24. <body>
  25. <div style="float: left; width: 720px;">
  26. <div style="width: 100%;">
  27. <table border="1" style="width:100%">
  28. <tr>
  29. <td>URL:</td>
  30. <td>/jaxrs/<input type="text" id="url" style="width:95%"/></td>
  31. </tr>
  32. <tr>
  33. <td colspan="2">
  34. <button id="get">GET</button>
  35. <button id="post">POST</button>
  36. <button id="put">PUT</button>
  37. <button id="delete">DELETE</button>
  38. </td>
  39. </tr>
  40. <tr><td colspan="2"><textarea id="content" style="width:97%;height:300px">{}</textarea></td></tr>
  41. <tr><td colspan="2"><textarea id="result" style="width:97%;height:400px"></textarea></td></tr>
  42. </table>
  43. </div>
  44. </div>
  45. </body>
  46. </html>