会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
_senjer
i + 1 theory
博客园
首页
新随笔
联系
订阅
管理
2024年11月18日
网页前端/node端实现图片旋转功能
摘要: 网页前端方式 // 图片旋转 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)
2024年3月19日
uniapp项目git忽略unpackage下文件
摘要: 根目录新建文件.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)
node使用redlock分布式锁
摘要: '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)
2024年3月18日
git输入换行
摘要: git tag -a 'v5.5.0' -m ' #按回车键1.修复了问题a2.修复了问题b3.修复了问题c' #按回车键 总结:引号+回车 -> 内容 -> 引号+回车
阅读全文
posted @ 2024-03-18 18:19 _senjer
阅读(21)
评论(0)
推荐(0)
2022年1月20日
前端PPT在线查阅
摘要: https://view.xdocin.com/https://jianshu.com/p/6d9755cb6273
阅读全文
posted @ 2022-01-20 11:01 _senjer
阅读(41)
评论(0)
推荐(0)
2022年1月19日
node应用授权-RSA非对称加密授权
摘要: 安装依赖包 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)
2021年11月29日
koa2实现用户登录、jwt签发token
摘要: 功能点: 1.注册账号:异常判断-用户名已存在;密码加密存库 2.账号登录:异常判断-用户不存在、密码错误;jwt签发token凭证;前端接收存入localStorage 3.token校验:接口携带token axios config.headers['Authorization'] = 'Bea
阅读全文
posted @ 2021-11-29 18:12 _senjer
阅读(478)
评论(0)
推荐(0)
2021年11月24日
vue 元素可拖动指令
摘要: 自定义指令 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)
2021年11月15日
nvm node版本管理工具 安装及使用
摘要: 安装配置 安装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)
2021年11月4日
vue 文本溢出鼠标拖动查看
摘要: 全局注册自定义指令(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)
下一页
公告