0%

后台返回完整的HTML页面代码

上周五客户要求能查看html页面,接口返回的是html代码,解决办法是需要中转页面,用document.write()方法重写整个页面,


中转页面:
===

1
2
3
4
<script>
document.write(localStorage.getItem(response));
document.close();
</script>
-------------本文结束感谢您的阅读-------------