Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
将您的 HTML 片段生成为单独的字符串,使用alert()它来回显它,并将结果粘贴到 W3 验证器中会出现以下错误:
alert()
未打开的元素“DIV”的结束标记
换句话说,你有一个虚假的</div>结束标签var openSecondary = ...
</div>
var openSecondary = ...
顺便说一句,验证器还抛出了您正在重用one_0_required作为多个元素的 ID
one_0_required