Home  >  Article  >  Web Front-end  >  Ajax_POST submission

Ajax_POST submission

无忌哥哥
无忌哥哥Original
2018-06-29 14:57:251752browse

Ajax_POST submission

* $_post(): jquery handles post requests in ajax

* Basic syntax: $.post(url, data, success, dataType)

* Parameter description:

* url: requested address

* data: data that needs to be sent to the server

* success(data, status, xhr): execution Successful callback function,

* Callback parameters: 1.data: Data returned from the server

* 2.status: Status of the current request

* 3.xhr : ajax object

* Usually we only care about the returned data: data

* dataType: format of data returned from the server

* xml, html, script, json, text , _default

* Usually 'json', which can be omitted and automatically determined by the system





4.Ajax_POST


用户登录

The above is the detailed content of Ajax_POST submission. For more information, please follow other related articles on the PHP Chinese website!

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