综合自经典论坛
目前有三种方式让<>能够通过w3c(这个<>是指document.write元素时的元素标记,而不是js的逻辑运算符):
hutia:
document.write(String.fromCharCode(60)+"img .../"+String.fromCharCode(62));
mirycat:
//<![CDATA[
document.write("<img .../>");
//]]>
bound0:
document.write("/x3Cimg ...//x3E");
本文介绍三种使用document.write绕过W3C限制的方法,包括利用字符编码、CDATA区块及十六进制转义的方式实现。这些技巧对于前端开发者来说非常实用。

777

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



