Blame view

view/test.html 450 Bytes
cf76164e6   Ting Chan   20190709
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  <!DOCTYPE html>
  <html>
  <head>
  	<title></title>
  </head>
  <body>
  
  	<button id="test"> test</button>
  	 <script src="../assets/plugins/jquery/jquery-2.2.0.min.js"></script>
    <script type="text/javascript">
    	 $("#test").click(function(){
       var tmp=9;
       $.post('deletefile.php',{content:tmp},function(data,status){
           alert(status);
          console.log(JSON.stringify(data));
       });
     });
  
  
    </script>
  </body>
  </html>