jquery ajax怎么传递参数到php中去

WBOY
Release: 2016-06-13 10:43:04
Original
840 people have browsed it

jquery ajax如何传递参数到php中去?
下面问题是从这个问题延迟出来的:如何让传参又不跳转网页?
下面的index.htm提交以后,通过addpage.php生成了result.htm,但没有得到folder和page的数据,数据为空白。请问要怎么设置?

index.htm代码如下

HTML code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><title>ajax</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><script type="text/javascript" src="http://localhost/leb/auto/js/jquery-latest.js"></script><script type="text/javascript">    $(function(){        $("#config").submit(function(){            $.ajax({                type:"GET",                url:"addpage.php",            });        });    });</script>    
Copy after login
涓荤
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!