mic*_*ele 9 javascript jquery internet-explorer
我用jQuery编写了一个脚本.它适用于Firefox和GoogleChrome.只有使用IE我才会返回此错误:
'jQuery'未定义为jquery-ui-1.8.4.custom.min.js,第10行字符1
这是我页面的负责人:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Contattaci - TheItalianBrand.com</title>
<script type="text/javascript" src="lib/jquery.js"></script>
<script type="text/javascript" src="lib/js/jquery-ui-1.8.4.custom.min.js"></script>
<link type="text/css" href="lib/css/smoothness/jquery-ui-1.8.4.custom.css" rel="stylesheet" />
<script type="application/javascript">
$(function(){
$('#dialog_link, ul#icons li').hover(
function() { $(this).addClass('ui-state-hover'); },
function() { $(this).removeClass('ui-state-hover'); }
);
$('input').change(function() {
validate();
});
$('input').keydown(function() {
validate();
});
$('textarea').change(function() {
validate();
});
$('textarea').keydown(function() {
validate();
});
});
</script>
</head>
Run Code Online (Sandbox Code Playgroud)
我能做什么?
不使用application/javascript,改为text/javascript
检查jquery的路径
是你的jquery在lib/js/,还是只是lib/?
确保您的 lib 目录相对于
您可能的意思是调用页面/lib/jquery.js(开头的斜杠会有所不同)
| 归档时间: |
|
| 查看次数: |
33458 次 |
| 最近记录: |