会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
srrrr
博客园
首页
新随笔
联系
订阅
管理
2023年12月7日
vscode ESlint configuration
摘要: .eslintrc.yml root: true globals: APP_ENV: true extends: - eslint:recommended - plugin:react/recommended - plugin:react-hooks/recommended env: browser
阅读全文
posted @ 2023-12-07 11:53 sssssssssssssrain
阅读(23)
评论(0)
推荐(0)
2023年10月30日
Yarn
摘要: 使用较高版本node nvm use 18.18.2 https://www.yarnpkg.cn/getting-started/install corepack -v corepack prepare yarn@stable --activate corepack enable yarn -v
阅读全文
posted @ 2023-10-30 20:27 sssssssssssssrain
阅读(16)
评论(0)
推荐(0)
2023年10月20日
npm ERROR. node-sass and python
摘要: 当前 install package 出现以下错误时 node-sass check python checking for Python executable "python2" in the PATH 建议安装 python@2 和 node@14 后再 install package. 下载
阅读全文
posted @ 2023-10-20 17:28 sssssssssssssrain
阅读(47)
评论(0)
推荐(0)
2022年11月28日
关于Promise
摘要: 在async function里,通过下面的做法可以阻塞 await new Promise((resolve) => setTimeout(resolve, 3000));
阅读全文
posted @ 2022-11-28 10:24 sssssssssssssrain
阅读(21)
评论(0)
推荐(0)
2022年10月8日
Object(...) is not a function
摘要: 检查报错文件是否存在相互引用的情况。
阅读全文
posted @ 2022-10-08 14:44 sssssssssssssrain
阅读(82)
评论(0)
推荐(0)
2022年9月8日
使用Keypress限制Input
摘要: const within = (keyCode) => { // Backspace 8, Tab 9, const specialKeys = [8, 9]; return ( (keyCode >= 48 && keyCode <= 57) || (keyCode >= 65 && key
阅读全文
posted @ 2022-09-08 15:24 sssssssssssssrain
阅读(115)
评论(0)
推荐(0)
2022年3月18日
npm常用命令
摘要: npm view react 查看npm库react最新版本信息 npm view react@16.14.0 查看指定版本信息 npm view react@16.14.0 dependencies 查看该版本依赖 npm view react versions 查看react的所有版本号 npm
阅读全文
posted @ 2022-03-18 18:45 sssssssssssssrain
阅读(78)
评论(0)
推荐(0)
2022年3月15日
JS函数闭包
摘要: 闭包指的是那些引用了另一个函数作用域中变量的函数,通常是在嵌套函数中实现的。 函数执行时,每个执行上下文中都会有一个包含其中变量的对象。全局上下文中的叫变量对象,它会在代码执行期间始终存在。而函数局部上下文中的叫活动对象,只在函数执行期间存在。在定义函数时,就会为它创建作用域链,预装载全局变量对象,
阅读全文
posted @ 2022-03-15 15:40 sssssssssssssrain
阅读(54)
评论(0)
推荐(0)
2022年3月11日
Git常用命令
摘要: HEAD 指向当前所在的分支 git clone 克隆git项目 git clone http://xxx.git 克隆git项目到当前目录,文件夹名与项目相同 git clone http://xxx.git new_folder 克隆git项目到当前目录,文件夹名为new_folder git
阅读全文
posted @ 2022-03-11 16:17 sssssssssssssrain
阅读(75)
评论(0)
推荐(0)
2022年3月7日
JS面向对象编程,继承
摘要: 继承是面向对象编程中讨论最多的话题。很多面向对象语言都支持两种继承:接口继承和实现继承。 前者只继承方法签名,后者继承实际的方法。接口继承在 ECMAScript 中是不可能的,因为函数没有签名,实现继承是 ECMAScript 唯一支持的继承方式。 原型链实现 其基本思想就是通过原型继承多个引用类
阅读全文
posted @ 2022-03-07 17:32 sssssssssssssrain
阅读(54)
评论(0)
推荐(0)
下一页
公告