菜单切换
htmlbook实例代码
htmlbook在线教程
htmlbook站长工具
赞赏工具
源代码
(
显示异常
)
:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>htmlbook实例代码(htmlbook.com.cn)</title> <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"> </script> <script> $(document).ready(function(){ $("button").click(function(){ $.post("/try/ajax/demo_test_post.php",{ name:"htmlbook在线", url:"http://www.htmlbook.com.cn" }, function(data,status){ alert("数据: \n" + data + "\n状态: " + status); }); }); }); </script> </head> <body> <button>发送一个 HTTP POST 请求页面并获取返回内容</button> </body> </html>
运行结果