后台返回完整的HTML页面代码 发表于 2020-10-19 热度: ℃ 本文字数: 178 阅读时长 ≈ 1 分钟 上周五客户要求能查看html页面,接口返回的是html代码,解决办法是需要中转页面,用document.write()方法重写整个页面,中转页面:=== 1234<script> document.write(localStorage.getItem(response)); document.close();</script> 本文作者: 卓利苗(Zhuo Limiao) 本文链接: https://akayi07.github.io/2020/10/19/20201019/ 版权声明: 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处! -------------本文结束感谢您的阅读-------------