本文介绍了为什么开发人员在JavaScript中分离<脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到很多这样的东西:
S =< scr+ipt language = \JavaScript1.2 \> \\\
;



为什么他们这样做,是否存在一个应用程序/浏览器,如果您直接使用< script>

解决方案





取自:

这并不能解释为什么它会在开始标记中完成。


I see so many things like this: S = "<scr" + "ipt language=\"JavaScript1.2\">\n<!--\n";

Why do they do this, is there an application/browser that messes up if you just use straight "<script>"?

解决方案

Have a look at this question:

Javascript external script loading strangeness.

Taken from bobince's answer:

This wouldn't explain why it's done in the start tag though.

这篇关于为什么开发人员在JavaScript中分离&lt;脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 17:00