Solve the problem of garbled background data of ajax request

// Convert encoding to prevent ajax garbled 
response.setHeader ( "content-type" , "text/html; charset=UTF-8") ;
response.setCharacterEncoding ( "UTF-8") ;
request.setCharacterEncoding ( "UTF-8" ) ;

these three sentences must be added to the beginning of the method.

For example:

Front page:

Pro test useful original --wangchunyang

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325554579&siteId=291194637