摘要: <script> function x1(){ var gj={}; gj.name="侯伟东"; gj.hp=500; gj.jj=90; gj.sd=60; gj.skill=new Array("招式1","招式2","招式3","招式4","招式5","招式6","招式7","招式8","招 阅读全文
posted @ 2018-06-19 11:57 侯伟东 阅读(118) 评论(0) 推荐(0) 编辑
摘要: <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 侯伟东 阅读(1313) 评论(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 侯伟东 阅读(966) 评论(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 侯伟东 阅读(1650) 评论(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 侯伟东 阅读(2371) 评论(0) 推荐(0) 编辑