我在 IE8 中使用 JQuery 测试了我的页面,但出现以下错误,IE 无法识别 JQuery,显示以下消息:
对象不支持此属性或方法第 4 行字符 6105。
在我的 HTML 代码下方:
<head>
<title><?php echo "SIBE - Sistema de Informação Bio Extratus" ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="/fwsibe/assets/css/styles.css" />
<link rel="stylesheet" type="text/css" href="/fwsibe/assets/css/quickmenu2.css"/>
<link rel="stylesheet" href="/fwsibe/sistema/libraries/interface/javascript/jquery/lib/jquery-ui/jquery-ui.custom.min.css" />
<link rel="stylesheet" href="/fwsibe/sistema/libraries/interface/javascript/jquery/plugins/fancybox/jquery.fancybox.css" />
<!--<link rel="stylesheet" href="/fwsibe/sistema/libraries/interface/javascript/jquery/plugins/datepicker/datetimepicker.css" />-->
<!--<link rel="stylesheet" href="/fwsibe/assets/jquery/css/demos.css" />-->
<script type="text/javascript" src="/fwsibe/sistema/libraries/interface/javascript/jquery/lib/jquery.min.js"></script>
<script type="text/javascript" src="/fwsibe/sistema/libraries/interface/javascript/jquery/lib/jquery-ui/jquery-ui.min.js"></script>
<script type="text/javascript" src="/fwsibe/assets/jquery/js/jquery-ui-sliderAccess.js"></script>
<script language="javascript" >
function tamanho() {
document.principal.largura.value = screen.width;
document.principal.altura.value = screen.height;
}
</script>
</head>
jQuery代码:
/**
* Script JQuery principal que inicializa a execução de outros scripts
*/
/**
*
* @type String dirScriptsEvento diretório padrão com o caminho dos scripts que gerenciam eventos dos diversos componetes
* @type Array arrayScripts contém o caminho de cada script a ser executado
*/
var dirJquery = "/fwsibe/sistema/libraries/interface/javascript/jquery/";
var dirJqueryPlugins = dirJquery + "plugins/";
var dirScriptsEvento = dirJquery + "scripts/eventos/";
var dirJqueryUi = dirJquery + "lib/jquery-ui/";
var arrayScripts = new Array(
dirJqueryPlugins + "datepicker/jquery-ui-timepicker-addon.js",
dirJqueryPlugins + "jquery-ajax_singleton-0.0.3.min.js",
dirScriptsEvento + "Menu.js",
dirScriptsEvento + "Dialog.js",
dirScriptsEvento + "Button.js",
dirScriptsEvento + "Template.js",
dirScriptsEvento + "Select.js",
dirScriptsEvento + "InputDate.js",
dirJqueryPlugins + "jquery.maskedinput.min.js",
dirJqueryPlugins + "jquery.ba-replacetext.min.js",
dirJqueryPlugins + "jquery.ba-hashchange.min.js",
dirJqueryPlugins + "jquery.form.min.js",
dirJqueryPlugins + "fancybox/jquery.fancybox.pack.js"
);
$(function() {
//Carrega os scripts JQuery
loadScripts();
});
/**
* Recarrega os scripts de evento jQuery sempre que um determinado evento acontece
*/
function loadScripts() {
for (var i = 0; i < arrayScripts.length; i++) {
jQuery.getScript(arrayScripts[i]);
}
}
错误发生在jquery.min.js
以下行中:
x.ready.promise=function(t){
return n ||(n=x.Deferred(), "complete"===o.readyState?setTimeout(x.ready):...
非常感谢!