上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页
摘要: 进入项目根目录 一、安装eslint-plugin-react-hooks: cnpm i -D eslint-plugin-react-hooks 二、配置ESLint: 1.打开项目根目录的package.json 2.把 "eslintConfig": { "extends": [ "reac 阅读全文
posted @ 2021-04-17 18:30 starlog 阅读(1710) 评论(0) 推荐(0) 编辑
摘要: 一、理解原型: 在JavaScript中,可通过原型实现继承。 原型的概念很简单。每个对象都含有原型的引用,当查找属性时,若对象本身不具有该属性,则会查找原型上是否有该属性。可以假想一下,你正在和一组人共同玩一个游戏,游戏规则为:主持人提问,如果你知道答案,则可直接回答;如果你不知道答案,则可以询问 阅读全文
posted @ 2021-04-13 22:01 starlog 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 在项目文件夹运行cmd 切换npm源和yarn源为淘宝源: npm config set registry https://registry.npm.taobao.org yarn config set registry https://registry.npm.taobao.org 安装creat 阅读全文
posted @ 2021-04-09 00:10 starlog 阅读(1842) 评论(0) 推荐(0) 编辑
摘要: 以管理员身份运行cmd 运行以下命令: cnpm i -g --production windows-build-toolscnpm i -g node-gypnpm config set python python2.7npm config set msvs_version 2017node-gy 阅读全文
posted @ 2021-04-08 23:51 starlog 阅读(1173) 评论(0) 推荐(0) 编辑
摘要: 在项目根目录打开cmd(Windows) dir #查看目录 git rm -r --cached .next #删除远程仓库的“.next”文件夹 git commit -m "add or modify" #提交 git push -u origin master #推送到master分支 阅读全文
posted @ 2021-04-08 22:50 starlog 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 以管理员身份运行cmd 安装cnpm: npm i -g cnpm --registry=https://registry.npm.taobao.org 安装Vue CLI命令行接口: cnpm i -g @vue/cli 查看Vue CLI版本: vue --version 升级Vue CLI版本 阅读全文
posted @ 2021-04-04 17:40 starlog 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 进入Linux控制台 编辑daemon.json文件: vi /etc/docker/daemon.json 按 i ,输入以下内容: { "registry-mirrors": ["http://hub-mirror.c.163.com"] } 按 Esc ,输入 !wq ,按回车 重启Docke 阅读全文
posted @ 2021-04-04 15:23 starlog 阅读(134) 评论(0) 推荐(0) 编辑
摘要: async库官方文档: https://caolan.github.io/async/v3/ 下载async库源代码: https://raw.githubusercontent.com/caolan/async/master/dist/async.js 示例: <!DOCTYPE html> <h 阅读全文
posted @ 2021-04-03 22:25 starlog 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 在下面的链接下载并安装对应系统的Docker: http://get.daocloud.io/ 如果是Win10家庭版,看以下文章安装Docker-Toolbox: https://www.cnblogs.com/starlog/p/14586939.html 基本命令: docker -v #查看 阅读全文
posted @ 2021-03-27 23:14 starlog 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 先确保电脑没有安装VMware,如果装了需要先卸载 打开这个网址,下载并安装带后缀“-ce”的安装包,如“DockerToolbox-18.03.0-ce.exe”: http://mirrors.aliyun.com/docker-toolbox/windows/docker-toolbox/ 通 阅读全文
posted @ 2021-03-27 22:10 starlog 阅读(234) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页