为什么不能用getInt()?
写的好复杂,
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Math </title>
<script type="text/javascript">
var a=0,b;
while(a<=10)
{
b = Math.round(Math.random()*a);
a++;
document.write(b+"<br>");
}
</script>
</head>
<body>
</body>
</html>
是parseInt() 可以用,我的