Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/80.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
JQuery问题-不工作!_Jquery_Html - Fatal编程技术网

JQuery问题-不工作!

JQuery问题-不工作!,jquery,html,Jquery,Html,好的,我有这个代码: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script type="text/javascript" href="https://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></

好的,我有这个代码:

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <script type="text/javascript" href="https://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
        <title>JQuery Demo 1</title>
        <style type="text/css">
            #box
            {
                background-color: #ff0000;
            }
        </style>
        <script type="text/javascript">
            $(function(){
                $('a').click(function()
                {
                    $('#box').fadeOut();
                });
            });
        </script>
    </head>
    <body>
        <div id="box">Yes!</div>
        <a href="#">Click me!</a>   
    </body>
</html>

JQuery演示1
#盒子
{
背景色:#ff0000;
}
$(函数(){
$('a')。单击(函数()
{
$(“#框”).fadeOut();
});
});
对
下面是视频教程系列中的内容。这是这个系列的第一部。(http://blog.themeforest.net/tutorials/jquery-for-absolute-beginners-video-series/)

当我执行此操作时,Firebug会说错误

未定义$[此错误时中断] $(函数(){


在tut中,它工作正常。任何帮助,谢谢。

将jquery脚本标记中的href更改为src(第4行)


将jquery脚本标记中的href更改为src(第4行)


更改

<script type="text/javascript" href="https://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>


更改

<script type="text/javascript" href="https://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>



不一定,简单的错误!请检查以帮助您找到标记问题。此外,我还将考虑获得一个体面的IDE,可以指出此类内容。请检查netbeans()I“我刚开始学习JS,并使用Aptana Studion 2。不一定,这是一个简单的错误!请检查以帮助您找到标记问题。此外,我还将考虑获得一个体面的IDE,可以指出这类内容。请检查netbeans(),我刚开始学习JS,并使用Aptana Studion 2。”。
 <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>