<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script type="text/javascript">
function fuzhi(m){
document.getElementById("span1").innerHTML=m
}
</script>
</head>
<body>
<input type="button" onclick="fuzhi(111)" value="ceshi1"/>
<input type="button" onclick="fuzhi(222)" value="ceshi2"/>
<input type="button" onclick="fuzhi(333)" value="ceshi3"/>
<input type="button" onclick="fuzhi(444)" value="ceshi4"/><br/>
<span id="span1" style="border:1px solid #F00; width:100px; height:20px ">传递过来的值是</span>
</body>
</html>
联系客服