菜鸟刚入门,问题简单了,不要拍砖#^_^#
写了一个很简单的代码<html><script type="text/javascript">
function alert(){alert("hello");}
</script>
<body>
window.onload=alert;
</body></html>
网页显示效果是window.onload=alert;一段代码。
很困惑,是哪个地方出错了,望大神高手们指教!
<html><script type="text/javascript"> function alert1(){alert("hello");} </script> <body> </body> <script> window.onload=alert1; </script> </html>