7.4.3.html

来自「《精通AJAX》光盘 要求: JDK1.4.2 以上版本 数据库采用M」· HTML 代码 · 共 31 行

HTML
31
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head>

<body>
<script language="JavaScript" type="text/javascript">
<!--
var userName="jack";
//根据用户名显示欢迎信息
function hello(_name){
	alert("hello,"+_name);
}
//创建一个函数,用于返回一个无参数函数
function _hello(_name){
	return function(){
		hello(_name);
	}
}
window.setTimeout(_hello(userName),3000);
//-->
</script>

</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?