<html>
<head>
<title>计算器</title>
<script lauguage="javascript">
function js(x,y,z){
var num1=parseFloat(document.getElementById(x).value,10);
var num2=parseFloat(document.getElementById(y).value,10);
document.getElementById(z).innerHTML=num1+num2;
}
</script>
</head>
<body>
<p>
<input type="text" ></a></p>
</body>
</html>
相关文章: