You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
959 B

  1. <!DOCTYPE html>
  2. <!--
  3. To change this license header, choose License Headers in Project Properties.
  4. To change this template file, choose Tools | Templates
  5. and open the template in the editor.
  6. -->
  7. <html>
  8. <head>
  9. <title>TODO supply a title</title>
  10. <meta charset="UTF-8">
  11. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  12. </head>
  13. <body>
  14. <div>TODO write content</div>
  15. </body>
  16. <script src = "/js/jquery-2.2.4.min.js">
  17. </script>
  18. <script>
  19. $.ajax({
  20. url:'./test_xi.php', //请求地址
  21. type: "post", //请求方式
  22. data:{
  23. type:"distribut_Login",
  24. },
  25. async:false,
  26. dataType: "json",
  27. success: function (data){
  28. console.log(data);
  29. if(data.code == 0){
  30. alert (data);
  31. }else{
  32. alert("登录失败")
  33. }
  34. },
  35. fail: function (date) {
  36. alert('查询失败');
  37. }
  38. });
  39. </script>
  40. </html>