简体   繁体   English

Ajax数据处理基础

[英]Ajax Basic of Data Processing

I am learning ajax with php. 我正在用php学习ajax。 And know how to do GET/POST and pass or receive data using : 并且知道如何使用以下方法执行GET / POST以及传递或接收数据:

  1. query string 请求参数
  2. JSON JSON格式
  3. XML XML格式

Is there any other way I can send data / get response without the above 3 choices? 如果没有上述3种选择,我还有其他方法可以发送数据/获取响应吗? I want to send a full object with lot of form data. 我想发送包含大量表单数据的完整对象。 Looking for all possible options. 寻找所有可能的选择。

Any suggestion for me? 对我有什么建议吗?

The understanding the format sent by the browser should be understood by the server. 服务器应该理解对浏览器发送的格式的理解。

You can use javascript to encode the object and form data and receive it on the server side and parse it. 您可以使用javascript编码对象并形成数据,然后在服务器端接收它并进行解析。

GET method is for requesting data ( search queries for example ) . GET方法用于请求数据(例如搜索查询)。 The url usually has a limit for length. 网址通常有长度限制。

POST method is for sending data that is to be saved) . POST方法用于发送要保存的数据。 Uploading images or videos (which are binary data) or data provided by user ( like plain text) 上传图像或视频(二进制数据)或用户提供的数据(如纯文本)

Just check this out , a lot of features included 只需检查一下,其中包括很多功能

http://jquery.malsup.com/form/ http://jquery.malsup.com/form/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM