摘要:
ES6 模块与 CommonJS 模块存在以下差异: 1、CommonJS 模块输出的是一个值的拷贝,ES6 模块输出的是值的引用 CommonJS 模块输出的是值的拷贝,也就是说,一旦输出一个值,模块内部的变化就影响不到这个值。 ES6 Modules 的运行机制与 CommonJS 不一样。JS 阅读全文
摘要:
先看这篇理解高阶组件 https://github.com/brickspert/blog/issues/2 一、定义 高阶函数:函数接受函数作为输入,或者输出一个函数。 高阶组件:接受React组件作为输入,或是输出一个组件。即hocFactory:: W: React.Component => 阅读全文
摘要:
git rebase 🌰场景一:本地与远端同一分支提交历史不一致 1 # 修复了一个bug以后准备提交 2 git add models/paper.go 3 git commit -m 'fix a bug' 4 # 现在准备推送到远端 5 git push origin master 6 # 阅读全文
摘要:
二、nginx基础配置 (1)错误指向一个页面 http状态指向指定访问页面,在 /etc/nginx/conf.d/default.conf 中配置 error_page 500 502 503 504 /50x.html; error_page 404 /404_error.html;error 阅读全文
摘要:
一、nginx的安装、启动、停止及文件解读 准备工作: yum -y install gcc gcc-c++ autoconf pcre-devel make automake yum -y install wget httpd-tools vim (1)基于Yum的方式安装Nginx 我们可以先来 阅读全文