You have sent A request to the server. after A while, A message is returned and B is returned.

Source: Internet
Author: User
All messages need to be returned by the server. Currently, thinkphp is used for development. the front-end user initiates A request. the server processes the request, returns A message A, and then processes the message, then return message B. I am using the thinkphp built-in method $ this-& amp; gt; ajaxReturn ($ info ,... all messages must be returned by the server.
I am currently using thinkphp Development. the front-end user initiates A request, the server processes the request, returns A message A, and then the server processes the request, and then returns the message B.

I am using
$ This-> ajaxReturn ($ info) The thinkphp built-in method, but after the result is returned, the subsequent operation cannot be executed. how can this problem be solved?

Reply content:

All messages must be returned by the server.
I am currently using thinkphp Development. the front-end user initiates A request, the server processes the request, returns A message A, and then the server processes the request, and then returns the message B.

I am using
$ This-> ajaxReturn ($ info) The thinkphp built-in method, but after the result is returned, the subsequent operation cannot be executed. how can this problem be solved?

This is because the link has ended, so it cannot return B. You can make a long link.
Or the interval between requests to the server

The front-end performs a check. after receiving the first response, it re-requests the second result or websocket.

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.