Home > Backend Development > PHP Tutorial > javascript - $.ajax 提交数据

javascript - $.ajax 提交数据

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:11:17
Original
896 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;

  $(document).ready(function(){
        $('#test').submit(function(){
            ....
            ....
            return false;
        });
  });
Copy after login
Related labels:
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
Latest Issues
What are JavaScript hook functions?
From 1970-01-01 08:00:00
0
0
0
What is JavaScript garbage collection?
From 1970-01-01 08:00:00
0
0
0
c++ calls javascript
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template