我的代码哪错了为什么不出来?
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Math </title>
<script type="text/javascript">
function mathf(){
var num1,num2,num;
num1 = document.getElementById("num1").value;
num2 = document.getElementById("num2").value;
num = Math.floor(num1);
num2 = num;
}
</script>
</head>
<body>
<input type="text" id="num1" /><br/>
<button onClick="mathf()">点击</button><br/>
<input type="text" id="num2" />
</body>
</html>