所以我的javascript莫名其妙地停止了工作。我不太确定我做了什么,但任何帮助将不胜感激。谢谢!我真的应该使用VC,我想这是警钟
<head style="overflow-x: hidden">
<title>Dupont Studios</title>
<link href='http://fonts.googleapis.com/css?family=Oxygen:300' rel='stylesheet' type='text/css'>
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
<script type="text/javascript" src="waypoints.js"></script>
<script type="text/javascript" src="jquery-1.9.1.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" media="only screen and (max-width: 400px)" href="mobile.css" />
<link rel="stylesheet" media="only screen and (min-width: 401px)" href="style.css" />
<script language="javascript" type="text/javascript">
$(function() {
// Do our DOM lookups beforehand
var nav_container = $(".nav-container");
var nav = $("nav");
nav_container.waypoint({
handler: function(direction) {
nav_container.toggleClass('sticky', direction=='down');
}
});
});
</script>
<script language="javascript" type="text/javascript">
$("li.nav-item").click(function() {
$("html, body").animate({
scrollTop: $($(this).children().attr("href")).offset().top + "px"}, {duration: 500, easing: "swing"
});
return false;
});
</script>
</head>
错误:
Uncaught ReferenceError: jQuery is not defined jquery-ui.js:351
Uncaught TypeError: undefined is not a function waypoints.js:25
Uncaught TypeError: Object [object Object] has no method 'waypoint'