我浏览了答案,但我仍然不知道为什么会出现此错误。
这是我页面顶部的 HTML 代码:
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<title>MAGI In a Box - Login</title>
<link href="css/main.css" rel="stylesheet" type="text/css" media="all" />
<link href="css/grids.css" rel="stylesheet" type="text/css" media="all" />
<link href="css/misc.css" rel="stylesheet" type="text/css" media="all" />
<link href="css/tables/demo_table_jui.css" rel="stylesheet" type="text/css" media="all" />
<link href="css/tables/jquery-ui-1.8.4.custom.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="js/table_pagination.js"></script>
<!--Start Style Specific to Project -->
<link href="css/magi.css" rel="stylesheet" type="text/css" media="all" />
<!--Start Style Specific to Project -->
<!-- Add the datepicker stylesheet -->
<link href="css/datepicker.css" rel="stylesheet" type="text/css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script src="js/jquery-ui.js" type="text/javascript"></script>
<script>
function SetFocus() {
var input = document.getElementById("user_email");
input.focus();
}
</script>
</head>
jquery 是在脚本的其余部分之前定义的,但我收到以下 3 个错误:
消息:“jQuery”未定义行:6Char:1Code:0URI:https ://demoapp01.smartstream.cognosante.com/MAGIDataEntry/js/jquery-ui.jsMessage:“$”未定义行:9Char:1Code:0URI:https ://demoapp01.smartstream.cognosante.com/MAGIDataEntry/js/jQuery.collapsible.jsMessage:对象预期行:3Char:1代码:0URI:https ://demoapp01.smartstream.cognosante.com/MAGIDataEntry/js/example.js
如果声明了 jQuery,为什么我仍然会收到这些错误?
这是我第一次发帖,希望格式正确!