摘要: // 1[3-9]\d{9} // \d{4}-(0?[1-9]|1[0-2])-(0?[1-9]|[12][0-9]|3[01]) // [\u4e00-\u9fa5] 阅读全文
posted @ 2021-11-04 15:20 六月沉 阅读(24) 评论(0) 推荐(0)
摘要: /* \d 0-9任意一个数字 [] 其中任意一个字符 [0-9] \d 12 => [1][2] 12 [12a] 1、2、a [a-zA-Z0-9_] [^] 非其中的任意一个字符 \w 数字、字母、下划线 . 任意一个字符 [.] . | 或 2|3 2、3 1[0-2] 1[012] ? 0 阅读全文
posted @ 2021-11-04 14:44 六月沉 阅读(12) 评论(0) 推荐(0)
摘要: // Number 数值 整数和小叔 // String 字符串 // bool true/false // null 没有 // undefined 未定义 // symbol es6 var a; console.log(typeof a); // object:正则、数组 字面量(json对象 阅读全文
posted @ 2021-11-02 17:15 六月沉 阅读(37) 评论(0) 推荐(0)
摘要: 获取文档中 class="example" 的所有元素: var x = document.querySelectorAll(".example"); 阅读全文
posted @ 2021-11-01 16:30 六月沉 阅读(31) 评论(0) 推荐(0)
摘要: 123 阅读全文
posted @ 2021-11-01 14:46 六月沉 阅读(18) 评论(0) 推荐(0)
摘要: 其他用法 var box =document.querySelector(".box"); 阅读全文
posted @ 2021-11-01 14:43 六月沉 阅读(322) 评论(0) 推荐(0)
摘要: <iframe src="head.html" width="100%" height="215px"></iframe> 使用iframe时 超链接要加上 target="_top" 例<a href="index.html" target="_top" class="active">首页</a> 阅读全文
posted @ 2021-10-29 12:00 六月沉 阅读(45) 评论(0) 推荐(0)
摘要: display: flex; justify-content: space-between; align-items: center; 阅读全文
posted @ 2021-10-28 19:27 六月沉 阅读(30) 评论(0) 推荐(0)
摘要: vertical-align: bottom; /*水平对齐*/ 阅读全文
posted @ 2021-10-27 11:11 六月沉 阅读(28) 评论(0) 推荐(0)
摘要: ul>(li>a[href=list.html]>img[src=img/top/a/toplist_a0$.jpg])*8 阅读全文
posted @ 2021-10-27 10:23 六月沉 阅读(117) 评论(0) 推荐(0)