Ajax gets the background data,,, is this data written in the database?

Source: Internet
Author: User
Keywords Php
Ajax gets background data,,, is this data written in the database?

Reply content:

Ajax gets background data,,, is this data written in the database?

First answer the question, can be, or can not.

Then explain why, Ajax send XHR packet to the backend, after the back-end parsing a series of operations (adding or deleting data, etc.). For example, you register the user to submit the registered data with Ajax, then send to the backend, back-end processing, that is, insert into the database operation. Next, return a result. The callback function of Ajax is based on the result of this return, which is followed by the client.

This data is generated by the background on request . Can be native database content, can be processed content, can be something else

  1. database, file, session, custom data can also wait

  2. Php,java,python,nodejs Getting Data

  3. Convert into Json,xml

  4. Ajax recognition

In fact, this background and the front-end interaction, is through the interface to carry out, can also be said to be API.
The specific embodiment is json,xml and other exchange formats.
It's like two people, one Chinese, one Japanese, you can't speak Japanese, I don't have Chinese.
But we all know English, so we first translate it into English.
How did this English come from? Can be found in the book on the translation of the sentence, or you can think of it.
Many ways.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.