慕容0727257
2016-06-20 21:38
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Math </title>
<script type="text/javascript">
var ran=Math.random(()*10);
document.write(Math.round(ran));
</script>
</head>
<body>
</body>
</html>
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Math </title> <script type="text/javascript"> var ran=Math.random()*10; alert(ran); document.write(Math.round(ran)); </script> </head> <body> </body> </html>
谢谢,已经找到错误点了
JavaScript进阶篇
468194 学习 · 21891 问题
相似问题
回答 3
回答 2
回答 1
回答 2
回答 4