基于AES的密文加解密
2021-11-16
## 什么是AES > **高级加密标准**(英语:Advanced Encryption Standard,缩写:AES),又称Rijndael加密法(荷兰语发音: [ˈrɛindaːl],音似英文的“Rhine doll”),是美国联邦政府采用的一种区块加密标准。这个标准用来替代原先的DES,已经被多方分析且广为全世界所使用。经过五年的甄选流程,高级加密标准由美国国家标准与技术研究院(NIS
View More
 
pip安装时编译失败问题
2021-08-03
# 错误来源 pip安装dukpy时报错`pip3 install --user dukpy` ``` × Running setup.py install for dukpy did not run successfully. │ exit code: 1 ╰─> [262 lines of output] running install running
View More
 
vue3学习笔记
2021-06-14
## 自定义指令 1. 定义: ```js app.directive('name', { // 在元素的 attribute 或事件侦听器应用之前调用 created(el, binding, vnode) {}, // 指令绑定到元素后发生。只发生一次, 同2.x的bind beforeMount(el, binding, vnode) {}, // 元素插入父 DOM
View More
 
vue3新特性
2021-06-14
1. ref传入函数, 使用同react 2. 异步引入需要使用助手函数`defineAsyncComponent`包裹, 选项用法时`loader`替代`component` ```js const asyncModal = defineAsyncComponent(() => import('./path/to/*.vue')); // 或 const asyncModalWithOption
View More
 
工具脚本项目构建-NodeJS
2020-12-09
# 目录 - [引子](#引子) - [如何编写脚本](#如何编写脚本) - [1. 第一步当然是选择一款趁手的语言](#_1-第一步当然是选择一款趁手的语言) - [2. 构建执行环境](#_2-构建执行环境) - [3. 需求分析](#_3-需求分析) - [4. 编写脚本](#_4-编写脚本) - [4-1. 代码调试方法](#_4-0-代码调试方法) -
View More
 
React-Hooks源码阅读
2020-05-10
# 前言 最近一直在使用React Hooks的相关API, 当时使用时有这样的一个疑惑: > 在函数组件内定义的变量总是会在组件刷新时重新赋值, 但是调用useMemo或者useCallback等Hooks API返回的却不会? 由于拖延症, 一直没有进去一探究竟, 直到今天阿里面试的时候遇到类似问题: > 用useMemo或者useCallback等Hooks API初始化的数据保存在
View More
 
JavaScript的继承整理
2020-05-08
# 准备 ## 定义父类 * 定义Father类和Mother类 * Father会下象棋 * Mother会做饭 * Father和Mother都会吃东西 ```javascript function Father (name) { this.name = name || 'Father'; this.gender = 'men'; this.chess = function
View More
 
项目规范化4-githooks的配置与使用
2020-05-05
# 应用场景 现在代码管理一般使用git, precommit就是在git的commit操作前执行相关命令, 一般配合代码lint、prettier或commitlint使用, 配套的还有prepush、commit-msg等. # 文档 使用husky实现`git hooks`功能 项目地址: [husky Github](https://github.com/typicode/husk
View More
 
项目规范化3-commitlint配置和使用
2020-05-05
# 应用场景 使用`git commit`时对Message的规范化, 不符合规范则阻止提交, 让项目更容易管理, 项目迭代也更清晰. # 文档 项目地址: [commitlint Github](https://github.com/conventional-changelog/commitlint#readme) 官网地址: [commitlint](https://commitlin
View More
 
项目规范化2-prettier的配置与使用
2020-05-04
# 应用场景 一般使用在项目中使用lint后规避程序代码的不合法使用, 但每个程序员的代码都有其自己的风格, 为了让代码风格一致, 一般会在git提交之前格式化一遍代码, 而格式化代码的工具就是prettier. # 文档 项目地址: [prettier Github](https://github.com/prettier/prettier) 项目官网: [prettier](https
View More
default