1.<script><pre>代码</pre></script>2.<pre><script>代码</script></pre>这两个标签嵌套使用会有什么效果,为什么会有这种效果
1 回答
已采纳

损失函数
TA贡献114条经验 获得超93个赞
<pre><script>代码</script></pre>这种写法可以,但<script><pre>代码</pre></script>这种写法浏览器会报错。因为script中是js的代码,而js的语法中不包含<>这种标签。
望采纳!
添加回答
举报
0/150
提交
取消