
博客
文章平均质量分 65
noal
这个作者很懒,什么都没留下…
展开
-
JS工具函数
判断数组中所有数是否满足条件 const all = (arr, fn = Boolean) => arr.every(fn); all([4, 2, 3], x => x > 1); // true all([1, 2, 3]); // true 判断数组中是否有一个满足条件 const any = (arr, fn = Boolean) => arr.some(fn); any([0, 1, 2, 0], x => x >= 2); // true any([0原创 2021-11-15 18:56:53 · 1050 阅读 · 0 评论 -
eslint 常用规则
“no-alert”: 0,//禁止使用alert confirm prompt “no-array-constructor”: 2,//禁止使用数组构造器 “no-bitwise”: 0,//禁止使用按位运算符 “no-caller”: 1,//禁止使用arguments.caller或arguments.callee “no-catch-shadow”: 2,//禁止catch子句参数与外部作用域变量同名 “no-class-assign”: 2,//禁止给类赋值 “no-cond-assign”: 2原创 2021-03-01 13:51:20 · 491 阅读 · 0 评论 -
真正从零开始搭建个人博客,从只有一个初始服务器开始
从零开始搭建个人博客 使用wordpress搭建个人博客 前置条件:拥有一个服务器 (1核2g1M就足够) 以下教程使用mac电脑示范: 使用ssh连接远程服务器 (用户密码在服务器控制台可以设置,比如阿里云控制台) 输入命令:ssh root@ip 输入密码: ******* 出现 Welcome to Alibaba Cloud Elastic Compute Service ! 表示连接成功。 搭建wordpress博客的步骤是: 安装nginx 并且运行 安装php 最好7.0.0以上 运行原创 2020-11-24 19:47:34 · 1051 阅读 · 0 评论