<html>
<script type="text/javascript">
alert('aa')
fuction A()
{
alert('aaa');
}
</script>
</html>
为什么运行后什么也看不到?

解决方案 »

  1.   

    function A() {
    ...
    }
      

  2.   

    <html>
    <head>
    <script type="text/javascript">
    alert('aa')
    fuction A()
    {
    alert('aaa');
    }
    </script>
    </head>
    <body></body>
    </html>
      

  3.   

    <html>
    <head>
    <script type="text/javascript">
    alert('aa')
    function A()
    {
    alert('aaa');
    }
    </script>
    </head>
    <body onload="A()"></body>
    </html>
      

  4.   


    <html>
    <head>
    <script type="text/javascript">
    alert('aa')
    function A()
    {
    alert('aaa');
    }
    A();
    </script>
    </head>
    <body onload="A()"></body>
    </html>
      

  5.   

    LZ  首先你的函数那个单词写错了是Function而不是fuction