摘要: 1.type含义: Identifier:最终我们需要获取的参数值的type Property:当存在解构参数,例如[a,b] or {x,y} ArrayPattern:存在解构参数并且是数组,例如[a,b] ObjectPattern:存在解构参数并且是对象,例如{x,y} RestElemen 阅读全文
posted @ 2020-01-09 15:42 tomatoa 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8" /> 5 <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 6 阅读全文
posted @ 2020-01-07 14:32 tomatoa 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 复制这段内容后打开百度网盘手机App,操作更方便哦 链接:https://pan.baidu.com/s/1GCoPfLxiuMe6IKxD1anPXQ 提取码:170a 阅读全文
posted @ 2019-12-27 11:13 tomatoa 阅读(292) 评论(0) 推荐(0) 编辑
摘要: rem布局分享 阅读全文
posted @ 2019-12-26 11:29 tomatoa 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 之前我已经分享了一篇css画圆环,为啥今天还要分享一篇svg画圆环呢? 原因是:css画圆环在部分ipone手机会有bug,最大张角为90°,所以圆环会有白色的间隙。 好了,开始代码展示: html: <svg class="c-c-c"> <!-- score为百分比值 --> <!-- colo 阅读全文
posted @ 2019-12-24 11:00 tomatoa 阅读(2685) 评论(0) 推荐(0) 编辑
摘要: 1.首先需要在页面里引用ejs.min.js。 2.将你的模板使用ejs编写,并存成后缀名.stmpl;(可能需要在打包工具里做些处理) 3.在js里使用require引入xxx.stmpl; const template = require('./test.stmpl'); 4.渲染模板引擎,拿到 阅读全文
posted @ 2019-12-23 17:21 tomatoa 阅读(1020) 评论(0) 推荐(0) 编辑
摘要: html: 1 <div class="circle"> 2 <div class="percent-circle percent-circle-left"> 3 <div class="left-content"></div> 4 </div> 5 <div class="percent-circ 阅读全文
posted @ 2019-12-20 18:33 tomatoa 阅读(3376) 评论(0) 推荐(0) 编辑
摘要: 1111 阅读全文
posted @ 2019-12-20 14:57 tomatoa 阅读(475) 评论(0) 推荐(0) 编辑
摘要: 个人博客:https://theeye.tech 博客小程序: 钩子类型 使用node编写githook,以pre-commit为例: 1.在项目下配置自动生成pre-commit文件,一般可以在启动项目的脚本下添加: modifyPreCommit: function () { if (!fse. 阅读全文
posted @ 2019-12-09 18:37 tomatoa 阅读(610) 评论(0) 推荐(0) 编辑
摘要: 1.SIGINT这个信号是系统默认信号,代表信号中断,就是ctrl+c; 2.SIGQUIT 3.SIGTERM 4.exit 阅读全文
posted @ 2019-11-26 15:24 tomatoa 阅读(198) 评论(0) 推荐(0) 编辑