上一页 1 ··· 8 9 10 11 12 13 下一页
摘要: JavaScript中每个对象都有一个_proto_属性指向这个对象构造函数的prototype对象,构造函数的prototype对象也有一个_proto_属性指向上层构造函数的prototype对象,最终指向null,形成原型链。 在JavaScript中,当试图访问一个对象的属性时,它不仅仅在该 阅读全文
posted @ 2021-02-09 21:54 starlog 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 安装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 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 切换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 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 进入nvm安装目录: cd C:\Users\lenovo\AppData\Roaming\nvm 输入以下命令,然后输入y: RD /S v15.8.0 阅读全文
posted @ 2021-02-07 15:59 starlog 阅读(1407) 评论(0) 推荐(0) 编辑
摘要: 使用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 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 一、打开命令行工具 二、使用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 阅读(3987) 评论(0) 推荐(0) 编辑
摘要: 一、进入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 阅读(10586) 评论(0) 推荐(0) 编辑
摘要: 用类: 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 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 在组件中: import PropTypes from 'prop-types'; const { items, onModifyItem, onDeleteItem } = props 这是传入组件的属性 PriceList.propTypes = { items: PropTypes.array 阅读全文
posted @ 2021-02-04 23:08 starlog 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 在项目根目录: 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 阅读(187) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 下一页