会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
mediocre92
博客园
首页
新随笔
联系
订阅
管理
2020年10月16日
递归查找对应的值
摘要: <!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)
2020年9月28日
What is 100% in calc function top: calc(100% + 8px)
摘要: 在calc中写100% 的含义: 譬如: top: calc(100% + 8px) 指的是top的值在父元素的高度基础上在增加8px; 此处100%指的父元素(relative)的高度
阅读全文
posted @ 2020-09-28 16:27 mediocre92
阅读(207)
评论(0)
推荐(0)
2020年9月27日
create-react-app ts eslint设置
摘要: 转载原文 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)
2020年9月26日
正则记录
摘要: \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)
2020年9月22日
循环遍历获取A-Z数组
摘要: 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)
公告