Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/design-patterns/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 为什么[如果…]条件不存在';在我的html中不工作?_Javascript_Html - Fatal编程技术网

Javascript 为什么[如果…]条件不存在';在我的html中不工作?

Javascript 为什么[如果…]条件不存在';在我的html中不工作?,javascript,html,Javascript,Html,我在Google Chrome 70.0.3538.67和Internet Explorer 11.55.17763.0中打开此html文件: 沙箱 log('Hello all!') 条件注释是Internet Explorer专有的,在其他浏览器中不受支持。支持已从IE中移除 这项技术已经过时,不应再依赖它(除非您明确针对IE版本5到9)。正如语法突出显示所示,注释不会在标记之前结束,而是将其括起来。

我在Google Chrome 70.0.3538.67和Internet Explorer 11.55.17763.0中打开此html文件:


沙箱
log('Hello all!')

条件注释是Internet Explorer专有的,在其他浏览器中不受支持。支持已从IE中移除


这项技术已经过时,不应再依赖它(除非您明确针对IE版本5到9)。

正如语法突出显示所示,注释不会在
标记之前结束,而是将其括起来。