摘要: // 安装依赖 npm install @babel/plugin-proposal-optional-chaining -S // @babel/plugin-proposal-nullish-coalescing-operator -S // 在babel.config.js中 的 plugin 阅读全文
posted @ 2021-07-15 15:08 异地大光码 阅读(2893) 评论(1) 推荐(2) 编辑
摘要: // vscode配置prettier无效 解决: // 1.安装Prettier - Code formatter插件,将默认格式化方式选为prettier // 2.根目录下创建.prettierrc文件,内容如下 { "printWidth": 300, "tabWidth": 2, "sin 阅读全文
posted @ 2021-07-15 14:59 异地大光码 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 1.安装 Node.js(>= v8.9)& MongoDB(>= v3.4)& Redis(>= v4.0) 安装MongDB https://www.runoob.com/mongodb/mongodb-window-install.html 安装Redis https://www.runoob 阅读全文
posted @ 2021-07-09 14:05 异地大光码 阅读(56) 评论(0) 推荐(0) 编辑
摘要: <template> <div> <el-form :model="tableForm" ref="tableForm"> <el-table :data="tableForm.tableData" border style="width: 100%" > <el-table-column labe 阅读全文
posted @ 2021-06-29 10:48 异地大光码 阅读(328) 评论(0) 推荐(0) 编辑
摘要: import React, {Component,lazy, Suspense} from 'react' const About = lazy(() => import(/*webpackChunkName: 'about'*/'./child.jsx')) class Layout extend 阅读全文
posted @ 2021-03-29 15:52 异地大光码 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 第一种: import React, {Component, createContext, useContext} from 'react' const Context = createContext() function Middle () { return ( <div> middle <Chi 阅读全文
posted @ 2021-03-29 11:44 异地大光码 阅读(277) 评论(0) 推荐(0) 编辑
摘要: // 设置禁用<el-switch v-model="scope.row.switch" disabled @click.native="changeSwitch(scope.row)"></el-switch> changeSwitch (e, row) { let rows = {...row} 阅读全文
posted @ 2021-01-27 11:42 异地大光码 阅读(1564) 评论(0) 推荐(1) 编辑
摘要: 全局安装create-react-app npm install -g create-react-app 创建项目 yarn create react-app react-antd-demo 安装antd包 yarn add antd 由于antd使用了less,所以如果想配置主题的话,我们也需要安 阅读全文
posted @ 2021-01-19 12:01 异地大光码 阅读(402) 评论(0) 推荐(0) 编辑
摘要: // element table ,每次只能选一个@selection-change="selectChange" selectChange (val) { if (val.length > 1) { this.$refs.table.clearSelection(); this.$refs.tab 阅读全文
posted @ 2021-01-13 14:25 异地大光码 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 去除所有空格,换行符 name.replace(/\s+/g,"") 阅读全文
posted @ 2020-12-29 12:53 异地大光码 阅读(100) 评论(0) 推荐(0) 编辑