2023年4月5日
摘要: <script> 猜数字游戏,设定次数,最多猜8次机会 要求:范围在(1~100)之间,如果猜的大了,就提示大了,如果猜的小了,就提示小了。 配合函数使用 function guess() { var random = Math.floor(Math.random() * 110 + 0); for 阅读全文
posted @ 2023-04-05 15:53 hqingxiang 阅读(86) 评论(0) 推荐(0)
摘要: <script> //将数组中重复的数据剔除,保存到新数组中 var arr = [1, 2, 3, 4, 5, 1, 2, 4]; var str = []; for (var i = 0; i < arr.length; i++) { if (str.indexOf(arr[i]) == -1) 阅读全文
posted @ 2023-04-05 15:52 hqingxiang 阅读(178) 评论(0) 推荐(0)
摘要: <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <t 阅读全文
posted @ 2023-04-05 15:50 hqingxiang 阅读(1099) 评论(0) 推荐(0)
摘要: Document a { text-decoration: none; color: black; } li { list-style: none; } </style> var news = [ { imgUrl: "", time: "1680566300", title: "古都、文字、武术、 阅读全文
posted @ 2023-04-05 15:30 hqingxiang 阅读(30) 评论(0) 推荐(0)