摘要: 自动版: function createTable2(row,col){ var table="<table>"; for(var i = 0;i<row;i++){ table+="<tr>"; for(var j = 0;j<col;j++){ table+="<td></td>"; } tab 阅读全文
posted @ 2020-02-09 20:43 放学别跑啊 阅读(491) 评论(0) 推荐(0) 编辑
摘要: 第一种: function getRandomColor(){ var color = "#"; for(var i = 0 ; i < 3 ;i++){ color+=parseInt(Math.random()*256).toString(16); if(color<16){ color="0" 阅读全文
posted @ 2020-02-09 20:21 放学别跑啊 阅读(598) 评论(0) 推荐(0) 编辑
摘要: 第一步,既然是全选和多选,那么一定需要鼠标去点击,那么我就先分别获取它们的id,然后给它们加个点击事件 //获取全选框的id var allCheck = document.getElementById("allCheck"); //添加点击事件 allCheck.addEventListener( 阅读全文
posted @ 2020-02-09 18:35 放学别跑啊 阅读(168) 评论(0) 推荐(0) 编辑
摘要: <style type="text/css"> div{ width: 100px; height: 100px; background-color: orange; position: absolute; } </style> js代码: <script type="text/javascript 阅读全文
posted @ 2020-02-09 16:47 放学别跑啊 阅读(160) 评论(0) 推荐(0) 编辑
摘要: public class 链表{ public static void main(String[] args){ NodeManager nm = new NodeManager(); System.out.println(" add "); nm.add(5); nm.add(4); nm.add 阅读全文
posted @ 2020-02-09 13:36 放学别跑啊 阅读(252) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> msg = confirm("是否学过h5"); console.log(msg); name =prompt("请输入信息"); document.write("name"); </script> 1.confirm弹出确定和取消按钮 阅读全文
posted @ 2020-02-09 12:30 放学别跑啊 阅读(152) 评论(0) 推荐(0) 编辑
摘要: package 质数; import java.lang.Math; public class 质数 { public static void main(String[] args) { long start = System.currentTimeMillis(); PrimeNumber(); 阅读全文
posted @ 2020-02-09 12:28 放学别跑啊 阅读(184) 评论(0) 推荐(0) 编辑