Home > Back-end >  Front except with ajax receive the backend data, there is no way
Front except with ajax receive the backend data, there is no way

Time:10-10

Front except with ajax receive the backend data, there is no way

CodePudding user response:

See the problem from two levels:


1 js to network programming, so a variety of TCP protocol can transmit data; Safety, safety management based on the session, HTTP is the most convenient
2 data format, binary and text can be, in the text, XML/json is the most common formats, including json transmission/parsing is the most convenient

So, the HTTP + json become the best choice

CodePudding user response:


Depends on the front how many components, such as ajax components, can be an asynchronous request,

CodePudding user response:

Receive are encapsulated the front end of the socket can also through the websocket or XMLHttpRequest
  • Related