<body> <script> var t2 = function (){ alert("函数表达式"); } alert(t1); alert(t2); function t1(){ alert("函数声明"); } </script> </body>
输出结果:
想知道在弹框中输出的结果 为什么还带着function函数?第二个结果的function函数没有t2
<body> <script> var t2 = function (){ alert("函数表达式"); } alert(t1); alert(t2); function t1(){ alert("函数声明"); } </script> </body>
输出结果:
想知道在弹框中输出的结果 为什么还带着function函数?第二个结果的function函数没有t2