[英]I can't seem to get any jQuery events to work on my page
我在使jQuery在我的頁面上無法正常工作時遇到問題。 並不是說它不能正常工作,只是它似乎沒有做任何事情。。。。我已經搜尋了整整一周的時間,試圖找到答案或原因,但它並沒有轉一切都好,所以我要在這里向大家問一個問題,希望我能得到一些幫助。 我的html和js文件粘貼在這里:
的HTML
<html>
<head>
<title>My Page!</title>
<link rel='stylesheet' type='text/css' href='stylesheet.css'/>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery.min.js"></script>
<script src='script.js'></script>
</head>
<body>
<div class="wrapper">
<header>Welcome to my site!</header>
<nav>
<a href="i310index.html"> About Me |</a>
<a href="i310interests.html">My Interests |</a>
<a href="i310resume.html">Resume |</a>
<a href="i310contact.html">Contact Me</a>
</nav>
<div class="content">
<p>Hello there, my name is Amanda and I'm a fifth year senior here at IU. I have been spent the semester learning jQuery for INFO-I 310 to make this website. It has been difficult to learn, but it has also been really interesting!
<br /> <br />
I will be graduating from IU this May (2014) with a Bachelor's degree in Informatics, as well as a cognate and minor in Pyschology. I would love to find a career after graduation where I can use the technology skills I have learned to help others. While I will be sad to leave IU, I am also excited about what will come in the future!</p>
</div>
</div>
</body>
</html>
jQuery文件
$(document).ready(function() {
$( ".content" ).resizable({ animate: true });
});
我只是不知道在這一點上還有什么地方,並且我想出辦法為什么它什么也不會做,所以我將不勝感激,不勝感激! 非常感謝!! :)
鏈接問題。 替換此鏈接
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery.min.js"></script>
與
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
您的jquery ui
網址無法正常使用,
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script>
代替
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery.min.js"></script>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.