Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/algorithm/12.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
jQuery没有加载IE9-标准?_Jquery_Html_Xhtml_Internet Explorer 9_Doctype - Fatal编程技术网

jQuery没有加载IE9-标准?

jQuery没有加载IE9-标准?,jquery,html,xhtml,internet-explorer-9,doctype,Jquery,Html,Xhtml,Internet Explorer 9,Doctype,有一个网站一直运行良好,但最近在IE9中它已经停止工作。 jQuery不会加载。到目前为止天气一直很好 但是任何需要jQuery的东西都不会加载,例如下拉菜单、简易滑块、颜色框 当我查看开发人员工具时,它会在控制台中显示: HTML1113: Document mode restart from IE9 Standards to Quirks local.domain.com HTML1113: Document mode restart from Quirks to IE9 Standar

有一个网站一直运行良好,但最近在IE9中它已经停止工作。 jQuery不会加载。到目前为止天气一直很好

但是任何需要jQuery的东西都不会加载,例如下拉菜单、简易滑块、颜色框

当我查看开发人员工具时,它会在控制台中显示:

HTML1113: Document mode restart from IE9 Standards to Quirks 
local.domain.com

HTML1113: Document mode restart from Quirks to IE9 Standards 
local.domain.com

HTML1201: chinacraftireland.com is a website you've added to Compatibility View. 
local.domain.com

HTML1113: Document mode restart from IE9 Standards to Quirks 
local.domain.com

HTML1113: Document mode restart from Quirks to IE9 Standards 
local.domain.com
我已经更改了DocType,但似乎没有任何区别


这是什么原因造成的?它工作正常,IE9有更新吗?

Hmmm。如果您选中了兼容性视图按钮,请取消选中它


首先将其放在头部。将DOCTYPE添加到html中



刚刚看了一眼,是twitter的脚本导致了这个问题。当它们被禁用时,一切正常。

HTTP错误404.0-未找到您正在查找的资源已被删除、名称已更改或暂时不可用。
这就是尝试查看jQuery文件时显示的内容。。检查它的位置,或者可能是代码中的某个地方有console.log()行。IE会抛出一个错误,任何脚本都不会运行。只是一个想法。我确定该文件不在您的
js
文件夹中。。请核对姓名。。请确保拼写正确。。除了jQuery之外,所有其他.js文件都可以正常打开。您是否下载了1.7.1并将其放入
js
文件夹中?我可以很好地访问你的1.6.2 jQuery文件,但你的1.7.1似乎不存在。对不起,我一直在脱机进行更改以尝试纠正问题,但在我发布链接时忘记上载。你可以尝试删除已注释的doctype。然后我会一个接一个地删除外部js文件,看看它是否开始工作。好的,我已经删除了注释掉的doctype。但奇怪的是,当我将浏览器模式更改为IE7或IE8时,它工作正常
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9">