javascript - $.ajax 提交数据

WBOY
Release: 2016-06-06 20:11:17
Original
810 people have browsed it

javascript - $.ajax 提交数据

javascript - $.ajax 提交数据

javascript - $.ajax 提交数据

依旧不行ne?

回复内容:

javascript - $.ajax 提交数据

javascript - $.ajax 提交数据

javascript - $.ajax 提交数据

依旧不行ne?

你仔细看的话还会发现request url也变了,所以你的问题是看错请求了

结尾加上return false;阻止submit默认提交事件

submit按钮换成button按钮。

submit按钮改成button按钮,或者在方法结尾加上return false;

<code class="javascript">  $(document).ready(function(){
        $('#test').submit(function(){
            ....
            ....
            return false;
        });
  });</code>
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!