回复 10楼 hugeannex
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META name="GENERATOR" content="IBM Software Development Platform">
<META http-equiv="Content-Style-Type" content="text/css">
<LINK href="theme/Master.css" rel="stylesheet" type="text/css">
<TITLE>teatfaf.html</TITLE>
<script type="text/javascript">
var aa=function(){
alert("aa");
}
var bb=function(){
alert("bb");
}
function show(fn){
fn=bb;
return fn();
}
</script>
</HEAD>
<BODY>
<P>Place content here.</P>
<input type="button" value="aa" onclick="show(aa)">
<input type="button" value="bb" onclick="show(bb)">
</BODY>
</HTML>
这样么
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META name="GENERATOR" content="IBM Software Development Platform">
<META http-equiv="Content-Style-Type" content="text/css">
<LINK href="theme/Master.css" rel="stylesheet" type="text/css">
<TITLE>teatfaf.html</TITLE>
<script type="text/javascript">
var aa=function(){
alert("aa");
}
var bb=function(){
alert("bb");
}
function show(fn){
fn=bb;
return fn();
}
</script>
</HEAD>
<BODY>
<P>Place content here.</P>
<input type="button" value="aa" onclick="show(aa)">
<input type="button" value="bb" onclick="show(bb)">
</BODY>
</HTML>