摘要: 网页前端方式 // 图片旋转 rotateImg(url, degree) { return new Promise((resolve, reject) => { const suffix = url.match(/[^\.]+$/)[0] const name = url.replace(/(.* 阅读全文
posted @ 2024-11-18 16:34 _senjer 阅读(107) 评论(0) 推荐(0)
摘要: 根目录新建文件.gitignore node_modules/ .project unpackage/ .DS_Store 命令行执行指令 git rm -r --cached unpackage #清除缓存 git add . git commit -m 'update .gitignore' g 阅读全文
posted @ 2024-03-19 11:41 _senjer 阅读(1409) 评论(0) 推荐(0)
摘要: 'use strict'; const Service = require('egg').Service; const moment = require('moment'); const redis = require('redis'); const RedlockClass = require(' 阅读全文
posted @ 2024-03-19 10:30 _senjer 阅读(67) 评论(0) 推荐(0)
摘要: git tag -a 'v5.5.0' -m ' #按回车键1.修复了问题a2.修复了问题b3.修复了问题c' #按回车键 总结:引号+回车 -> 内容 -> 引号+回车 阅读全文
posted @ 2024-03-18 18:19 _senjer 阅读(21) 评论(0) 推荐(0)
摘要: https://view.xdocin.com/https://jianshu.com/p/6d9755cb6273 阅读全文
posted @ 2022-01-20 11:01 _senjer 阅读(41) 评论(0) 推荐(0)
摘要: 安装依赖包 npm i node-rsa 生成RSA公私钥对 const NodeRSA = require('node-rsa') function createKey() { const key = new NodeRSA({ b: 512 }) // 生成512位密钥 const RE = / 阅读全文
posted @ 2022-01-19 13:57 _senjer 阅读(397) 评论(0) 推荐(0)
摘要: 功能点: 1.注册账号:异常判断-用户名已存在;密码加密存库 2.账号登录:异常判断-用户不存在、密码错误;jwt签发token凭证;前端接收存入localStorage 3.token校验:接口携带token axios config.headers['Authorization'] = 'Bea 阅读全文
posted @ 2021-11-29 18:12 _senjer 阅读(478) 评论(0) 推荐(0)
摘要: 自定义指令 Vue.directive('removable', { bind(el, binding, vnode, oldVnode) { if (!binding) return el.onmousedown = e => { el.style.cursor = 'move' const [t 阅读全文
posted @ 2021-11-24 11:52 _senjer 阅读(235) 评论(0) 推荐(0)
摘要: 安装配置 安装nvmnvm安装包:https://github.com/coreybutler/nvm-windows/releases/download/1.1.8/nvm-setup.zip 检测是否安装成功 nvm -v 设置淘宝镜像源(下载提速) nvm node_mirror https: 阅读全文
posted @ 2021-11-15 14:36 _senjer 阅读(170) 评论(0) 推荐(0)
摘要: 全局注册自定义指令(main.js) Vue.directive('dragabled', { bind(el, binding, vnode, oldVnode) { if (!binding) return el.onmousedown = e => { let disX = e.clientX 阅读全文
posted @ 2021-11-04 10:34 _senjer 阅读(158) 评论(0) 推荐(0)