有没有要改进的地方
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Math </title>
<script type="text/javascript">
function math(){
var math = Math.round(Math.random()*10);
document.getElementById('txt2').value = math;
}
</script>
</head>
<body>
<input type="text" name="text" id="txt2">
<input name="button" type=button value="刷新" onclick="math()"/>
</body>
</html>