Home >Backend Development >PHP Tutorial >javascript - 为什么页面上显示的不是换行,但下面XHR中的HTML显示换行呢?

javascript - 为什么页面上显示的不是换行,但下面XHR中的HTML显示换行呢?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 20:13:191161browse

javascript - 为什么页面上显示的不是换行,但下面XHR中的HTML显示换行呢?

为什么页面上显示的不是换行,但下面XHR中的HTML显示换行呢?
初学ajax和php,简单疑问请大神赐教哈

回复内容:

javascript - 为什么页面上显示的不是换行,但下面XHR中的HTML显示换行呢?

为什么页面上显示的不是换行,但下面XHR中的HTML显示换行呢?
初学ajax和php,简单疑问请大神赐教哈

变成字符串输出了,换成转义符试试

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn