摘要: # 函数定义# 用于代码的重用# def print_verse():# # 函数体# print('锄禾日当午')## print_verse()# print_verse()# print_verse()# def print_verse(verse_name):# # # 函数体# # if 阅读全文
posted @ 2019-07-31 12:46 EricBlog 阅读(402) 评论(0) 推荐(0) 编辑
摘要: // axios 安装 yarn add axios // axios post请求默认是 json 所以要下载 querystring 转换成x-www-form-urlencoded yarn add querystring 阅读全文
posted @ 2020-07-01 14:42 EricBlog 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 要转发的地址 "proxy":"http://localhost:4000" 重启项目 OK 阅读全文
posted @ 2020-07-01 14:09 EricBlog 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 安装 redux yarn add redux yarn add react-redux yarn add redux-thunk 安装 redux-devtools 调试工具命令 yarn add redux-devtools-extension yarn add redux react-redu 阅读全文
posted @ 2020-07-01 10:01 EricBlog 阅读(102) 评论(0) 推荐(0) 编辑
摘要: yarn add react-router-dom import {NavLink,Route,Switch,Redirect} from 'react-router-dom' 阅读全文
posted @ 2020-06-29 18:35 EricBlog 阅读(91) 评论(0) 推荐(0) 编辑
摘要: plugins:[ [ 'component',{ 'libraryName':"mint-ui", // 针对 mint-ui 库实现按需引入打包 'styley':true // 自动打包对应的css } ] ] yarn add babel-plugin-component -D 阅读全文
posted @ 2020-06-26 11:59 EricBlog 阅读(1935) 评论(0) 推荐(0) 编辑
摘要: git init 创建工作区 git add . 添加到暂存区 提交到版本区 git commit -m 'init app' 记录远程仓库地址 git branch 查看分支 创建并切换分支 git push -u origin my 推送到远程仓库 git status 查看本地状态 git a 阅读全文
posted @ 2020-06-25 11:14 EricBlog 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 添加到环境变量 yarn config set registry https://registry.npm.taobao.orgnpm config set registry https://registry.npm.taobao.org 阅读全文
posted @ 2020-06-24 15:58 EricBlog 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-06-24 15:41 EricBlog 阅读(625) 评论(0) 推荐(0) 编辑
摘要: 卸载重装即可。npm uninstall -g @vue/clinpm install -g @vue/cli@3.11.0 阅读全文
posted @ 2020-06-24 12:34 EricBlog 阅读(10976) 评论(0) 推荐(4) 编辑
摘要: 阅读全文
posted @ 2020-06-24 12:06 EricBlog 阅读(102) 评论(0) 推荐(0) 编辑