首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

这样也不行?解决方法

2012-02-15 
这样也不行?htmlheadtitle test /titlescripttype text/javascript functionsayhello(){aler

这样也不行?
<html>
<head>
<title> test </title>
<script   type= "text/javascript ">
function   sayhello()
{
alert   ( "say   fuck ");
}
</script>
</head>
<body>
<script   type= "text/javascript ">
sayhell();
</script>
</body>
</html>

我在head里定义sayhello函数,然后在body里将其执行,这样也不行?一定要
<script   type= "text/javascript ">
function   sayhello()
{alert( "you ");
}
sayhello();
</script>
这样写在一起才行?

[解决办法]
<script type= "text/javascript ">
sayhell();
</script>
???
sayhello()你少了个o....

热点排行