会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Redchar.X
一力降百会。
博客园
首页
新随笔
联系
订阅
管理
2022年9月22日
nvm 安装 node 失败
摘要: For anything under v15, you will need to install node using Rosetta 2. You can do this by running the nvm installation commands inside the Rosetta 2 s
阅读全文
posted @ 2022-09-22 17:01 Redchar
阅读(319)
评论(0)
推荐(0)
2022年5月11日
CSS添加otf字体文件
摘要: @font-face { font-family: 'Lato'; src: local('Lato'), url(./fonts/Lato-Regular.otf) format('opentype'); }
阅读全文
posted @ 2022-05-11 21:07 Redchar
阅读(1748)
评论(0)
推荐(0)
2022年5月10日
centOS 安装npm
摘要: 搬运:https://blog.csdn.net/qq_25231683/article/details/120762573 cd /home // 下载 wget https://nodejs.org/dist/v14.18.1/node-v14.18.1-linux-x64.tar.xz //
阅读全文
posted @ 2022-05-10 13:43 Redchar
阅读(731)
评论(0)
推荐(1)
CentOS 安装git
摘要: yum -y install git
阅读全文
posted @ 2022-05-10 13:37 Redchar
阅读(9)
评论(0)
推荐(0)
2022年4月24日
Cannot find module './assets/css/xxx.scss' or its corresponding type declarations
摘要: https://stackoverflow.com/questions/64732623/react-typescript-cannot-find-module-or-its-corresponding-type-declaration css.d.ts declare module '*.scss
阅读全文
posted @ 2022-04-24 18:23 Redchar
阅读(987)
评论(0)
推荐(0)
2021年11月17日
js instanceof
摘要: 检测构造函数的 prototype 属性是否出现在某个实例对象的原型链上。 function Car(make, model, year) { this.make = make; this.model = model; this.year = year; } const auto = new Car
阅读全文
posted @ 2021-11-17 16:28 Redchar
阅读(82)
评论(0)
推荐(0)
es7 (2016) 简明汇总
摘要: 1. 数组includes()方法,用来判断一个数组是否包含一个指定的值,根据情况,如果包含则返回true,否则返回false。 2. a ** b指数运算符,它与 Math.pow(a, b)相同 简析: 1. includes(), 即indexOf(x) > -1 list.includes(
阅读全文
posted @ 2021-11-17 16:13 Redchar
阅读(32)
评论(0)
推荐(0)
es8(2017)简明汇总
摘要: async/await: 异步终极解决方案 Object.values() Object.entries() String padding:String.prototype.padStart、String.prototype.padEnd 函数参数列表结尾允许逗号 Object.getOwnProp
阅读全文
posted @ 2021-11-17 16:05 Redchar
阅读(39)
评论(0)
推荐(0)
js splice
摘要: //删除起始下标为1,长度为1的一个值(len设置1,如果为0,则数组不变) var arr = ['a','b','c','d']; arr.splice(1,1); console.log(arr); //['a','c','d']; //替换起始下标为1,长度为1的一个值为‘ttt’,len设
阅读全文
posted @ 2021-11-17 15:15 Redchar
阅读(226)
评论(0)
推荐(0)
es8 (es2017) Object.entries
摘要: const object1 = { a: 'somestring', b: 42 }; for (const [key, value] of Object.entries(object1)) { console.log(`${key}: ${value}`); } // expected outpu
阅读全文
posted @ 2021-11-17 15:08 Redchar
阅读(46)
评论(0)
推荐(0)
下一页
公告