//给你个demo //需要下载个jquery.js $.ajax({ type: "POST", //请求方式 url: "some.php",//请求文件 data: "name=John&location=Boston",//传输的参数 success: function(msg){ alert( "Data Saved: " + msg );//返回的结果 } }); //可以把ajax看做一个表单请求。但可以实时返回结果
你多看看基础的书吧。或者下载些chm文档看看关于jquery.ajax那章
用ajax,或者curl. 最快的办法就是用jquery的$.ajax方法.
使用 Ajax
21,887
社区成员
140,363
社区内容
加载中
试试用AI创作助手写篇文章吧