1. In traditional web development, mvc method, view is to return the page, but it must also report an error in the ajax request interface, which returns json 2. In mobile development, the view can be considered as returning json data 3. Model layer, controller There is no change in the layers. There is no essential difference between returning html and returning json
There is no essential difference. If it is the kind of development that separates the front and back of the web, at most you need to add a callback. However, when doing API development, you must have good interface standards. When I was working on the project, I ran into a lot of pitfalls because of the interface standards. .
1. In traditional web development, mvc method, view is to return the page, but it must also report an error in the ajax request interface, which returns json
2. In mobile development, the view can be considered as returning json data
3. Model layer, controller There is no change in the layers. There is no essential difference between returning html and returning json
There is no essential difference. If it is the kind of development that separates the front and back of the web, at most you need to add a callback. However, when doing API development, you must have good interface standards. When I was working on the project, I ran into a lot of pitfalls because of the interface standards. .
In terms of development, there is no difference. But there is one thing to note about the mobile terminal. To save traffic.