Non-single page application
For example, the POST request to save an article uses JS asynchronously, which is an AJAX request
It used to be http://www.test.com/content/save, but the save address was changed to json return
You need to use this part Is the new address http://www.test.com/api/conte... For example, the API interface used?
Non-single page application
For example, the POST request to save an article uses JS asynchronously, which is an AJAX request
It used to be http://www.test.com/content/save, but the save address was changed to json return
You need to use this part Is the new address http://www.test.com/api/conte... For example, the API interface used?
It depends on how you write the code, the url is just a routing.
The main code level should have a unified API access layer to return unified result data.