问答详情
源自:7-16 随机数 random()

随机数 random()

<!DOCTYPE html>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Math </title>

<script type="text/javascript">

document.write(Math.round(Math.random()*10));

</script>

</head>

<body>

</body>

</html>


提问者:Vincent_Eson 2015-04-16 15:28

个回答

  • hechou
    2015-12-18 12:30:04

    <!DOCTYPE html>

    <html>

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title>Math </title>

    <script type="text/javascript">

    document.write(Math.round(Math.random()*10));

    </script>

    </head>

    <body>

    </body>

    </html>