摘要: 以下是JS方法获取100以内的质数 function getPrimes(max) { const primes = []; for (let num = 2; num <= max; num++) { let isPrime = true; for (let div = 2; div * div 阅读全文
posted @ 2024-07-26 10:35 技术探索者 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 这里是介绍页 https://code.visualstudio.com/updates/v1_70 下载地址 https://update.code.visualstudio.com/1.70.2/win32-x64-user/stable 或者点击微软官网的页面 下载 从微软官网找了好久,找到了 阅读全文
posted @ 2024-07-25 22:47 技术探索者 阅读(2) 评论(0) 推荐(0) 编辑
摘要: CSS 容器查询的主要思想是将一个元素注册为“容器”,并在容器元素满足某些条件时将样式应用于其他元素。 容器查询通常被认为是响应式网页设计的一种现代方法,其中传统媒体查询长期以来一直是黄金标准 - 原因是我们可以创建由响应容器宽度而不是视口宽度的元素组成的布局。 .parent { containe 阅读全文
posted @ 2024-07-23 21:03 技术探索者 阅读(3) 评论(0) 推荐(0) 编辑
摘要: window.onorientationchange = function () { alert("转动了"); } 阅读全文
posted @ 2011-11-08 16:17 技术探索者 阅读(279) 评论(0) 推荐(0) 编辑
摘要: <html><style id="css"> body{font-family:Verdana;font-size:11px;color:#333;} #win{position:absolute;left:100px;top:100px;width:200px;height:150px;border:1px solid #000;} .title{width:100%;background:#000;height:18px;color:#fff;cursor:hand;} </style> <script> var x0=0 阅读全文
posted @ 2011-10-17 13:58 技术探索者 阅读(186) 评论(2) 推荐(1) 编辑