10 2021 档案
React i18n多语言实现
摘要:目前比较流行的三种方式react-i18nextreact-intlreact-intl-universa what is react-i18next?react-i18next is a powerful internationalization framework for React / Rea
阅读全文
react note
摘要:React用于构建用户界面的javascript库特性 声明性 learn once组件函数组件(无状态组件)类组件(有状态组件) 组件通讯父->子子->父兄弟组件EventEmitter 组件的生命周期 事件绑定this指向 箭头函数Function.prototype.bind()类的实例函数
阅读全文
es6扩展运算符
摘要:1:数组扩展运算符 概念:扩展运算符Spread(...)是将一个数组转为用逗号分隔的参数序列 function f(...rest) { console.log(rest) }f(1,2,3) ...rest是一个逗号分隔的参数序列, 如果调用f(1,2,3),我们会打印出[1,2,3],说明re
阅读全文
git 常用命令笔记
摘要:基本概念工作区暂存区版本库 git push <远程主机名> <本地分支名>:<远程分支名> 1:将本地的 master 分支推送到 origin 主机的 master 分支。$ git push origin master $ git push origin master:master origi
阅读全文
函数的合成
摘要:1.函数的合成 合成两个函数const compose = function (f, g) { return function (x) { return f(g(x)); };} const compose=(arr)=>{ return function(x){ return arr.reduce
阅读全文
浙公网安备 33010602011771号