会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
starlog
yume
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
8
9
10
11
12
13
下一页
2021年2月9日
JavaScript中的原型、原型对象与原型链
摘要: JavaScript中每个对象都有一个_proto_属性指向这个对象构造函数的prototype对象,构造函数的prototype对象也有一个_proto_属性指向上层构造函数的prototype对象,最终指向null,形成原型链。 在JavaScript中,当试图访问一个对象的属性时,它不仅仅在该
阅读全文
posted @ 2021-02-09 21:54 starlog
阅读(151)
评论(0)
推荐(0)
2021年2月7日
删除node_modules文件夹
摘要: 安装cnpm: npm install -g cnpm --registry=https://registry.npm.taobao.org 安装删除工具: cnpm install rimraf -g 切换到项目目录: cd D:\Projects\my_app 使用命令删除node_module
阅读全文
posted @ 2021-02-07 21:07 starlog
阅读(349)
评论(0)
推荐(0)
切换npm和yarn的源为镜像源
摘要: 切换npm源为镜像源: npm config set registry https://registry.npmmirror.com 切换yarn源为镜像源: yarn config set registry https://registry.npmmirror.com 切换npm源为默认源: np
阅读全文
posted @ 2021-02-07 19:32 starlog
阅读(486)
评论(0)
推荐(0)
强制删除使用nvm安装的node版本
摘要: 进入nvm安装目录: cd C:\Users\lenovo\AppData\Roaming\nvm 输入以下命令,然后输入y: RD /S v15.8.0
阅读全文
posted @ 2021-02-07 15:59 starlog
阅读(1473)
评论(0)
推荐(0)
使用nrm切换npm源
摘要: 使用nvm安装node: https://www.cnblogs.com/starlog/p/14384773.html 切换npm源为淘宝源: npm config set registry https://registry.npm.taobao.org 安装nrm: npm install -g
阅读全文
posted @ 2021-02-07 15:25 starlog
阅读(331)
评论(0)
推荐(0)
安装cnpm、yarn、tyarn
摘要: 一、打开命令行工具 二、使用nvm安装node: https://www.cnblogs.com/starlog/p/14384773.html 三、运行以下命令,分别安装cnpm、yarn、tyarn: npm i -g cnpm yarn tyarn --registry=https://reg
阅读全文
posted @ 2021-02-07 14:29 starlog
阅读(4338)
评论(0)
推荐(0)
使用nvm安装node
摘要: 一、进入nvm下载页面(Windows): https://github.com/coreybutler/nvm-windows/releases 如果打不开GitHub,可以尝试修改host文件: https://www.cnblogs.com/starlog/p/14458834.html 二、
阅读全文
posted @ 2021-02-07 13:39 starlog
阅读(16095)
评论(0)
推荐(0)
2021年2月4日
React新建组件
摘要: 用类: import React from 'react'; import { IonIcon, addIcons } from 'react-svg-ionicons'; import bundle from 'react-svg-ionicons/bundles/all'; import Pro
阅读全文
posted @ 2021-02-04 23:34 starlog
阅读(109)
评论(0)
推荐(0)
React使用PropTypes进行属性检查、添加默认属性
摘要: 在组件中: import PropTypes from 'prop-types'; const { items, onModifyItem, onDeleteItem } = props 这是传入组件的属性 PriceList.propTypes = { items: PropTypes.array
阅读全文
posted @ 2021-02-04 23:08 starlog
阅读(175)
评论(0)
推荐(0)
React项目引入react-svg-ionicons
摘要: 在项目根目录: npm i react-svg-ionicons -S 在组件中: import { IonIcon, addIcons } from 'react-svg-ionicons'; import bundle from 'react-svg-ionicons/bundles/all';
阅读全文
posted @ 2021-02-04 20:49 starlog
阅读(207)
评论(0)
推荐(0)
上一页
1
···
8
9
10
11
12
13
下一页
公告