Ajax-09: The server responds to JSON data

The response data from the server should be in string format

  • Convert the object to a string through JSON.stringify(data)

The client obtains the matching json by setting the response body format or through JSON.parse

Achieve effect

Guess you like

Origin blog.csdn.net/sinat_41696687/article/details/114709471