<pre style="word-wrap: break-word; white-space: pre-wrap;">json</pre> 解决办法:后台一定要response.setContentType("text/html");