<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <title> New Document </title>
  <script language = "javascript" type = "text/javascript" src = "E:\jquery\jquery-2.js"></script>  <script type = "javascript">
  var alertNotice = function()
  {
  alert("welcome to study JQuery");
  }  $(document).ready(alertNotice);
  </script>
 </head> <body>
  
 </body>
</html>在google chrome ,  firefox , IE10 下都熬不起来, 哪里有问题?求指点。

解决方案 »

  1.   

    $(document).ready(function() {
        alertNotice();
    });
      

  2.   

    还是不行啊。  直接用闭包的形式也不行。 $(document).ready(function()
      {
      alert(".........");
      });这样也不行啊 
      

  3.   

    <!DOCTYPE html>
    <html>
    <head>
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">
    </script>
    <script>
    var alertNotice = function()
      {
          alert("welcome to study JQuery");
      }
     
    $(document).ready(function(){
      alertNotice();
    });
    </script>
    </head>
    <body>
    <p>如果您点击我,我会消失。</p>
    <p>点击我,我会消失。</p>
    <p>也要点击我哦。</p>
    </body>
    </html>
    这不可以吗