
前端
前端
飞鱼丶灬
这个作者很懒,什么都没留下…
展开
-
Nginx学习——nginx的下载、安装和启动
Nginx作为一款轻量级WEB服务服务器,除了作为http代理和反向代理服务器,还更广泛的运用于负载均衡、高级http服务、邮件代理服务等。接下来,我们开始学习如何下载安装Nginx服务器,包括windows平台和linux平台。1 获取Nginx的官方网址:http://nginx.orgNginx下载地址:http://nginx.org/en/download.html主线开发版...原创 2019-09-10 09:55:03 · 433 阅读 · 0 评论 -
Install nginx
RHEL/CentOSInstall the prerequisites:sudo yum install yum-utilsTo set up the yum repository, create the file named /etc/yum.repos.d/nginx.repo with the following contents:vi /etc/yum.repos.d/nginx.repo[nginx-stable]name=nginx stable repobaseurl=ht原创 2020-08-17 16:55:57 · 162 阅读 · 0 评论 -
编译安装 nginx 1.18.0
yum install pcre-devel pcre gcc gcc-c++ openssl openssl-devel zlib-develwget http://nginx.org/download/nginx-1.18.0.tar.gztar zxvf nginx-1.18.0.tar.gzcd nginx-1.18.0./configure --prefix=/opt/nginx/1.18.0--with-select_module \--with-poll_module \--w原创 2020-12-17 16:53:41 · 977 阅读 · 0 评论 -
js时间戳转时分秒
MillisecondToDate = mss => { /* eslint-disable */ let date=''; const days = parseInt(mss / (1000 * 60 * 60 * 24)); const hours = parseInt((mss % (1000 * 60 * 60 * 24)) / (1000 * 60 ...原创 2019-09-16 11:02:05 · 1138 阅读 · 0 评论 -
JS 相关
const reduce = response.data.reduce((obj, v) => { obj[v.id] = { text: v.baseName, key: v.id }; return obj; }, {});原创 2020-10-15 16:32:57 · 161 阅读 · 0 评论 -
CSS
最佳 CSS 写法body { /* 字体 */ font-family: -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', sans-serif; /* 字号 */ font-size: 16px; /* 字体颜色 */ color: #333; /* 行距 */ line-height: 1.75;}-apple-system 和 BlinkMacSystemFont 就是让原创 2021-02-02 13:44:50 · 352 阅读 · 0 评论 -
NEXT.JS
npm install -g create-next-appcreate-next-app --example with-ant-design-pro-layout-less with-ant-design-appcd with-ant-design-appcnpm installyarn dev原创 2020-11-13 16:51:09 · 225 阅读 · 0 评论 -
ES6 如何快速的删除数组元素
let arr = [{id:1,value:1},{id:2,value:2},{id:3,value:3},{id:8,value:8}]let index = arr.findIndex(item => item.id === 8);if(index !== -1){ arr.splice(index,1)}原创 2020-12-30 10:22:18 · 2031 阅读 · 0 评论 -
rowKey={(record, index) => index}
rowKey={(record, index) => index}原创 2020-03-10 15:49:12 · 4595 阅读 · 0 评论 -
antd pro 使用 wowjs 动画
官方文档animate.cssWOW安装 npm i wowjs --save # 笔者当前版本 1.1.3 # 依 animate.css版本 4.1.1引入animate.cssglobal.less引入:@import '~animate.css/animate.min.css';组件加入动画index.jsx// 依赖import { WOW } from 'wowjs'; // 初始化 componentDidMount() { new WOW({原创 2021-02-05 17:36:53 · 332 阅读 · 0 评论 -
Please use `require(“history“).createHashHistory` instead of `require(“history/createHashHistory“)`
Warning: Please use require("history").createHashHistory instead of require("history/createHashHistory"). Support for the latter will be removed in the next major release.项目下找到node_modules\dva\lib\index.js22行var _createHashHistory = _interopRequireDefa原创 2020-11-19 16:27:51 · 737 阅读 · 0 评论 -
ANT DESIGN PRO V4 编译设置路由前缀
package.json "build": "cross-env PUBLIC_PATH=/cms/ umi build", "start": "cross-env PORT=8002 PUBLIC_PATH=/cms/ umi dev",config.jsconst { PUBLIC_PATH } = process.env;export default defineConfig({ hash: true, history: { type: 'hash' }, bas原创 2021-01-14 11:13:30 · 905 阅读 · 0 评论 -
antd 自定义表单验证 onBlur
<Form.Item label="邮箱" hasFeedback> {getFieldDecorator('email', { initialValue: userData.email, validateFirst: true, validateTrigger: 'onBlur...原创 2019-12-12 17:57:55 · 4510 阅读 · 0 评论 -
antd form 按rules 顺序校验
validateFirst: true, <Item label="账号" hasFeedback> {getFieldDecorator('loginName', { validateFirst: true, rules: [ { ...原创 2020-03-11 14:43:50 · 1974 阅读 · 0 评论 -
error cb() never called!
D:\WebstormProjects\cms-web>npm -v6.14.10D:\WebstormProjects\cms-web>node -vv14.15.4查看 npm配置,如果存在registry为https://registry.npm.taobao.org,编辑文件C:\Users\用户名.npmrc,删掉对应配置npm config listornpm config ls -l清理缓存npm cache clean -fnpm cache verif原创 2021-01-26 14:41:42 · 7795 阅读 · 0 评论 -
Yarn 常用
https://classic.yarnpkg.com/en/docs/cli/install/#代理yarn config set registry https://registry.npm.taobao.org#安装依赖yarn install --no-lockfile --update-checksums#启动yarn start#打包yarn run build原创 2021-01-04 17:49:53 · 850 阅读 · 0 评论 -
yarn Integrity check failed ... computed integrity doesn‘t match our records
建议清理缓存$ yarn cache clean安装依赖命令参考 https://classic.yarnpkg.com/en/docs/cli/install/$ yarn install --no-lockfile --update-checksums原创 2021-01-04 17:47:42 · 5547 阅读 · 1 评论 -
npm常用
npm config set prefix “D:\npm_global_modules\node_modules”原创 2020-09-27 16:44:04 · 1265 阅读 · 0 评论 -
MSBUILD : error MSB4132: 无法识别工具版本“2.0”。可用的工具版本为 "4.0"。
npm config set msvs_version 2017原创 2020-02-13 19:37:16 · 2705 阅读 · 1 评论 -
yarn 错误There appears to be trouble with your network connection. Retrying
yarn 错误There appears to be trouble with your network connection. Retrying…原因:yarn超时解决途径:1、安装好后更换淘宝镜像yarn config set registry https://registry.npm.taobao.org...原创 2019-07-14 20:32:59 · 60235 阅读 · 14 评论