摘要:
<script>var colors=['red','blue','green','orange','yellow']; function bcolor(){ var c=Math.floor(Math.random()*5); document.bgColor=colors[c]; }bcolor 阅读全文
posted @ 2018-06-19 10:15
侯伟东
阅读(1340)
评论(0)
推荐(0)
摘要:
<script> var year=2016; function runnian(year){ if (year%400==0) {return true;}else if (year%4==0&&year%100!=00) {return true;}else{ return false; } } 阅读全文
posted @ 2018-06-19 10:05
侯伟东
阅读(993)
评论(0)
推荐(0)
摘要:
<script> // alert(Math.PI); // alert(Math.floor(3.16)); // var a=Math.ceil(3.1); // alert(a); // alert(Math.round(3.1)); // alert(Math.round(3.5));// 阅读全文
posted @ 2018-06-19 09:27
侯伟东
阅读(1708)
评论(0)
推荐(0)
摘要:
function selec(low,high){var ch=high-low+1;return Math.floor(Math.random()*ch+low);}for (var i = 0; i < 10; i++) { document.write(selec(1111,8888)+"<b 阅读全文
posted @ 2018-06-19 09:24
侯伟东
阅读(2390)
评论(0)
推荐(0)

浙公网安备 33010602011771号