今天使用EXT上传时发现返回的结果被加个<pre>标签
后台输入
结果变成
原因是contentType为text/plain改成text/html就可以了
后台输入
{success:true}
结果变成
<pre>{success:true}</pre>
原因是contentType为text/plain改成text/html就可以了
解决EXT上传时返回结果被<pre>标签包裹的问题,通过调整contentType设置从text/plain改为text/html。
{success:true}
<pre>{success:true}</pre>
2961

被折叠的 条评论
为什么被折叠?