updateTest2.jsp 937 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <%@page language="java" pageEncoding="UTF-8"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>Test</title>
  7. <!--框架必需start-->
  8. <%@include file="/page/include1.jsp" %>
  9. <!--框架必需end-->
  10. <script type="text/javascript">
  11. $(function(){
  12. /* $.post($.pathname() +"/ws/test/TestService/test/", {
  13. }, function(result) {
  14. if (result.Msg.sucsess == true) {
  15. alert("成功");
  16. } else {
  17. alert("失败");
  18. }
  19. }, "json"); */
  20. alert(111);
  21. var url = $.pathname() + '/ws/test/TestService/test/';
  22. $.ajax({
  23. url : url,
  24. type : 'post',
  25. dataType : 'json',
  26. success : function(data){
  27. alert("修改成功!");
  28. }
  29. });
  30. });
  31. </script>
  32. </head>
  33. <body >
  34. </body>
  35. </html>