test.jsp 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <title>Insert title here</title>
  8. <script src="static/js/jquery-1.11.1.js"></script>
  9. <script type="text/javascript">
  10. var urls = new Array();
  11. urls.push(["http://192.168.57.37:18080/jsjy","111"]);
  12. urls.push(["http://10.1.30.117:8080/jsjy","省局"]);
  13. urls.push(["http://112.4.174.66:8090/jsjy/","淮安"]);
  14. urls.push(["http://221.224.9.194:5952/jsjy/","苏州"]);
  15. urls.push(["http://211.103.49.236:8081/jsjy/","连云港"]);
  16. urls.push(["http://58.221.239.213:8081/jsjy/","南通"]);
  17. urls.push(["http://10.32.0.120:8081/jsjy","南通2"]);
  18. urls.push(["http://222.187.126.162:8081/jsjy/","徐州"]);
  19. urls.push(["http://10.13.18.50:8081/jsjy","徐州2"]);
  20. urls.push(["http://58.221.88.199:8081/jsjy","南通内河"]);
  21. urls.push(["http://218.92.205.156:18081/jsjy","盐城"]);
  22. urls.push(["http://221.231.126.3:18081/jsjy","盐城内河"]);
  23. urls.push(["http://61.160.77.229:9000/jsjy/","无锡"]);
  24. urls.push(["http://10.3.0.20:9000/jsjy/","无锡2"]);
  25. urls.push(["http://218.90.243.178:7010/jsjy","泰州"]);
  26. urls.push(["http://10.10.1.28:7010/jsjy","泰州2"]);
  27. urls.push(["http://222.185.255.10:38081/jsjy/","常州"]);
  28. urls.push(["http://58.217.112.41:7103/jsjy/","镇江"]);
  29. urls.push(["http://221.226.102.115:9090/jsjy","南京"]);
  30. urls.push(["http://61.177.182.197:8081/jsjy","扬州"]);
  31. urls.push(["http://61.147.254.211:6088/jsjy","宿迁"]);
  32. function IsLoad(url,name){
  33. $.ajax({
  34. type: 'get',
  35. url: url,
  36. cache: false,
  37. dataType: "jsonp",
  38. processData: false,
  39. timeout:10000,
  40. complete: function (data) {
  41. if (data.status==200) {
  42. $("body").html($("body").html()+"<br>"+name+':可以访问');
  43. } else {
  44. $("body").html($("body").html()+"<br>"+name+':error');
  45. }
  46. }
  47. });
  48. }
  49. $(document).ready(function() {
  50. for(var i=0;i<urls.length;i++){
  51. IsLoad(urls[i][0],urls[i][1]);
  52. }
  53. });
  54. </script>
  55. </head>
  56. <body>
  57. </body>
  58. </html>