日期:2014-05-16  浏览次数:20358 次

之 javascript 2011-3-10

gedit 写代码

?

<html>
<head>
<title>my first js in ubuntu
</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
</head>

<body>
<script>
? function Sing()
? {
??? with(arguments.callee)
??? alert(author+":"+poem);
? };
?
? Sing.author="李白";
? Sing.poem="举头望明月,低头思故乡";
? Sing();
</script>
</body>
</html>