Home  >  Article  >  Backend Development  >  一个ajax的有关问题

一个ajax的有关问题

WBOY
WBOYOriginal
2016-06-13 10:15:30866browse

一个ajax的问题
ajax.php

PHP code
无标题文档
url
message


deal_ajax.php
PHP code


点击“保存”按钮可以异步提交到deal_ajax.php,但是马上就走form的action了!!!!用post也是

------解决方案--------------------


------解决方案--------------------
type="submit" 

改成
type="button"
------解决方案--------------------
onclick="submit_form('later');return false"
------解决方案--------------------
PHP code
echo "" .        "";        exit;
Statement:
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