一个项目不同版本的依赖包 "codemirror": "^6.0.1", "codemirror5582": "npm:codemirror@5.58.2",npm install 别名@npm:包名@版本号 npm install codemirror5582@npm:codemirror@5.58.2 2023-07-04 04:05:29 Vue ·
划词弹框 鼠标选中文本弹出悬浮框,计算选中文字的位置。@mouseup.stop="handleMouseUp" <div class="cont" id="textareaCont"> <textarea @select.stop="onSelect" @keydown="onKeyDown" ref="origintext" v-model="origin"></textare... 2023-06-26 12:45:00 Vue ·
网站监控平台 http://sitemoniter.com/ https://cron-job.org/en/ https://uptimerobot.com/ 2023-06-25 05:07:55 未分类 ·
Windows 激活 https://github.com/TGSAN/CMWTAT_Digital_Edition https://cmwtat.cloudmoe.com/cn.htmlhttps://github.com/massgravel/Microsoft-Activation-Scripts https://massgrave.dev/镜像下载1.HelloWindows: https://www.hellowindows.cn/2.MSDN 山己几子木 https://msdn.sjjzm.com/3.MSDN 系统库 https://www.xito... 2023-06-10 02:50:00 猎奇 ·
qrcode import QRCode from 'qrcode' let canvas:any = document.getElementById('canvas') QRCode.toCanvas( canvas, 'text', { width: 150 }, function (error) { ... 2023-06-06 11:14:57 Vue ·
文件处理 1、base64转file对象let imageBase64 let blob = dataURLtoBlob(imageBase64) let file = blobToFile(blob, Date.now() + '.png') dataURLtoBlob(dataurl) { var arr = dataurl.split(','), mime = arr[0].match(/:(.*?);/)[1], bstr = atob(arr[1]), ... 2023-06-03 09:16:00 JS ·
小程序接口被高频访问 安全检测过程中,平台会模拟真实业务场景,向提审小程序的后台发送服务请求,服务器会收到来自平台(显示为:Tencent Security Team,请求IP为106.55.202.118;113.96.223.69;125.39.132.125)的请求。官方公告 2023-05-23 04:45:00 未分类 ·
解决elementui table固定列的时候,滚动条被遮挡无法拖动的问题 1、修改el-table__body-wrapper样式的层级 /deep/ .el-table__body-wrapper{ z-index: 2 }解决滚动条被遮住的问题,同时含有合计也适用,缺点:就是表头和合计那部分有阴影,中间的部分没有阴影,不过不影响效果,问题不大。2、修改el-table__fixed样式.el-table { .el-table__fixed { height:auto !important; bottom:17px !important; } }就是设置... 2023-05-17 09:09:00 C3H5 ·
浏览器内核判断 const userAgent = navigator.userAgent; const isWechat = /MicroMessenger/.test(userAgent); const isAlipay = /AlipayClient/.test(userAgent); const isChrome = /Chrome/.test(userAgent) && /Google Inc/.test(navigator.vendor); const isFirefox = /Firefox/.test(userAgent); con... 2023-05-06 08:15:00 Vue C3H5 ts ·
Typora 下载安装 激活 https://drive.google.com/drive/folders/1F5FjmqBJxgmYWzvQn4btllQoegYO3mbU?usp=sharing 2023-05-05 09:20:00 未分类 ·
节点测速工具 https://github.com/faceair/clash-speedtestgo install github.com/faceair/clash-speedtest@latest clash-speedtest -c config.yaml 2023-05-04 01:27:08 未分类 ·
nvm win10安装 先卸载nodehttps://github.com/coreybutler/nvm-windowshttps://github.com/coreybutler/nvm-windows/releases安装最新版本的 Node: nvm install latest安装 LTS 版本的 Node: nvm install lts安装指定版本: nvm install 14.11.12安装大版本:nvm install 14查看版本:nvm list使用版本:nvm use 14 2023-04-16 05:53:00 NodeJS ·
文字高亮 const regex = new RegExp(searchContent, "gi"); return text.replace(regex,'<span style="color:#286CFB;">$&</span>'); 2023-04-05 07:10:00 HTML JS ·
.prettierrc.js 自定义格式化 // .prettierrc 文件:Prettier 规则配置文件 module.exports = { printWidth: 500, // 超过最大值换行 // overrides: [ // { // files: '.prettierrc', // options: { parser: 'json' }, // }, // ], tabWidth: 4, // 缩进字节数 useTabs: false, // 缩进不使用... 2023-03-20 01:37:20 未分类 ·
Vue2+Tsx 的一个问题 const userInfo: any = UserService.getUserInfo() const userId = userInfo?.userId || 0如上,userId 最后没有使用,会报什么问题? 2023-03-18 10:00:18 Vue JSX ·
浏览器麦克风使用 <button type="button" id="start-btn">开始录音</button> <button type="button" id="stop-btn">停止录音</button> <button type="button" id="play-btn">播放录音</button>const startBtn = do... 2023-03-15 10:42:00 JS ·
非对称加密(node-rsa,jsencrypt) 公钥私钥生成随便找个在线生成的http://www.metools.info/code/c80.htmlORconst NodeRSA = require('node-rsa') const fs = require('fs') const newkey = new NodeRSA({ b: 512 }) newkey.setOptions({ encryptionScheme: 'pkcs1' }) let public_key = newkey.exportKey('pkcs8-public') //公钥 let private_key =... 2023-02-28 11:20:00 Api JS NodeJS uniapp ·