Home  >  Article  >  Backend Development  >  ajax-return value - How does MUI use ajax to request the content of json returned in thinkphp?

ajax-return value - How does MUI use ajax to request the content of json returned in thinkphp?

WBOY
WBOYOriginal
2016-12-01 01:27:301675browse

I am now requesting data on Alibaba Cloud during local debugging. The backend has been prepared on Alibaba Cloud to return content. Currently, the front-end ajax cannot request any data. I use the api testing tool to lightly check the addresses of Alibaba Cloud. There are two types of addresses. In the first case, an access denied pop-up box pops up, and in the second case, an http302 response code is returned. Please tell me How can I get the background data for mobile operations? This is my first time doing mobile development and I have never been exposed to it before. Please forgive me if the description is unclear or unprofessional.

Reply content:

I am now requesting data on Alibaba Cloud during local debugging. The backend has been prepared on Alibaba Cloud to return content. Currently, the front-end ajax cannot request any data. I use the api testing tool to lightly check the addresses of Alibaba Cloud. There are two types of addresses. In the first case, an access denied pop-up box pops up, and in the second case, an http302 response code is returned. Please tell me How can I get the background data for mobile operations? This is my first time doing mobile development and I have never been exposed to it before. Please forgive me if the description is unclear or unprofessional.

The access denied popup you mentioned means that you are accessing either the address or the parameters. Another possibility is that the local network cannot access the external network. There are many situations. 302 means redirected. Can you get the data if you directly use PHP's curl to test locally? Or use the postman tool to debug and see if you can get the data!

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