摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
posted @ 2020-10-16 13:45 mediocre92 阅读(260) 评论(0) 推荐(0)
摘要: 在calc中写100% 的含义: 譬如: top: calc(100% + 8px) 指的是top的值在父元素的高度基础上在增加8px; 此处100%指的父元素(relative)的高度 阅读全文
posted @ 2020-09-28 16:27 mediocre92 阅读(207) 评论(0) 推荐(0)
摘要: 转载原文 https://www.xtivia.com/advanced-linting-with-create-react-app-typescript-and-eslint/ Advanced linting with Create React App, Typescript, and ESLi 阅读全文
posted @ 2020-09-27 16:00 mediocre92 阅读(831) 评论(0) 推荐(0)
摘要: \s 匹配任意空白字符, 在正则RegExp中使用: let reg = new RegExp("(^|\s)你$"); reg /(^|s)你$/ let reg2 = new RegExp("(^|\\s)你$"); reg2 /(^|\s)你$/ 阅读全文
posted @ 2020-09-26 13:57 mediocre92 阅读(124) 评论(0) 推荐(0)
摘要: String.fromCharCode(65) 'A'; String.fromCharCode(90) 'Z'; let letterArr = []; for(let i = 65; i< 91; i++) { letterArr.push(String.fromCharCode(i)) }; 阅读全文
posted @ 2020-09-22 12:18 mediocre92 阅读(708) 评论(0) 推荐(0)