WishMeLz

生活其实很有趣

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...

qrcode

import QRCode from 'qrcode' let canvas:any = document.getElementById('canvas') QRCode.toCanvas( canvas, 'text', { width: 150 }, function (error) { ...

文件处理

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]), ...

小程序接口被高频访问

安全检测过程中,平台会模拟真实业务场景,向提审小程序的后台发送服务请求,服务器会收到来自平台(显示为:Tencent Security Team,请求IP为106.55.202.118;113.96.223.69;125.39.132.125)的请求。官方公告

解决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; } }就是设置...

浏览器内核判断

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...

节点测速工具

https://github.com/faceair/clash-speedtestgo install github.com/faceair/clash-speedtest@latest clash-speedtest -c config.yaml

文字高亮

const regex = new RegExp(searchContent, "gi"); return text.replace(regex,'<span style="color:#286CFB;">$&</span>');

.prettierrc.js 自定义格式化

// .prettierrc 文件:Prettier 规则配置文件 module.exports = { printWidth: 500, // 超过最大值换行 // overrides: [ // { // files: '.prettierrc', // options: { parser: 'json' }, // }, // ], tabWidth: 4, // 缩进字节数 useTabs: false, // 缩进不使用...

Vue2+Tsx 的一个问题

const userInfo: any = UserService.getUserInfo() const userId = userInfo?.userId || 0如上,userId 最后没有使用,会报什么问题?

浏览器麦克风使用

<button type="button" id="start-btn">开始录音</button> <button type="button" id="stop-btn">停止录音</button> <button type="button" id="play-btn">播放录音</button>const startBtn = do...

非对称加密(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 =...

uniapp 返回上一页页面出现空白遮挡白屏

前言: ios webview嵌套的H5页面,H5页面是uniapp打包的。返回页面页面出现白屏遮挡物因为列表页面使用了 vh 高度导致。因为100%的高度拿不到,只能使用100vh,并且还添加了box-sizing: border-box; 也不行。 改写高度方式,不使用vh就行了

苹果IOS搞机

巨魔https://github.com/opa334/TrollStoreScarlet:https://usescarlet.com/#projectsIPA资源巨魔商店: @Trollstore_Chat秋名山:@ae86_chat白嫖联盟:@iOSTxTTKDASHEN:@tkdashenipaget:@ipaget白嫖哥:@baipiaoge888https://ipaspot.app/categories/tweakedapps.htmlhttps://www.iphonecake.com/index.php?device=1&c=0&...

finalshell导出密码解密

https://c.runoob.com/compile/10/import java.io.ByteArrayOutputStream; import java.io.DataOutputStream; import java.io.IOException; import java.math.BigInteger; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.security.SecureRandom;...