简体   繁体   English

我似乎无法在页面上使用任何jQuery事件

[英]I can't seem to get any jQuery events to work on my page

I am having problems getting anything jQuery to work on my page. 我在使jQuery在我的页面上无法正常工作时遇到问题。 It is not that it isn't working correctly, just that it doesn't seem to be doing ANYTHING....and I have searched for a week all over trying to find an answer or reason why, and it isn't turning anything up so I am to the point where I am going to ask a question to you all on here, and hope I can get some help. 并不是说它不能正常工作,只是它似乎没有做任何事情。。。。我已经搜寻了整整一周的时间,试图找到答案或原因,但它并没有转一切都好,所以我要在这里向大家问一个问题,希望我能得到一些帮助。 My html and js files are pasted here: 我的html和js文件粘贴在这里:

HTML 的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 File jQuery文件

$(document).ready(function() {
    $( ".content" ).resizable({ animate: true });
});

I just don't know where else to look at this point and am going out of my mind trying to figure out why it won't do anything, so any help would be GREATLY appreciated!!! 我只是不知道在这一点上还有什么地方,并且我想出办法为什么它什么也不会做,所以我将不胜感激,不胜感激! Thanks so much!! 非常感谢!! :) :)

Link problem. 链接问题。 Replace this link 替换此链接

<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery.min.js"></script>

with

<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>

Your jquery ui url is not working use, 您的jquery ui网址无法正常使用,

<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script>

in place of 代替

<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery.min.js"></script>

Working demo 工作演示

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM