随机数这节的运行结果为什么最后有NaN?
随机数这节的运行结果为什么最后有NaN?
随机数这节的运行结果为什么最后有NaN?
2016-01-12
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Math </title>
<script type="text/javascript">
var i = Math.random()*10;
document.write(Math.round(i));
</script>
</head>
<body>
<input type="submit" value="重新获得一个随机数" onclick="window.location.reload() " >
</body>
</html>
举报