文字高亮 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 ·
uniapp 返回上一页页面出现空白遮挡白屏 前言: ios webview嵌套的H5页面,H5页面是uniapp打包的。返回页面页面出现白屏遮挡物因为列表页面使用了 vh 高度导致。因为100%的高度拿不到,只能使用100vh,并且还添加了box-sizing: border-box; 也不行。 改写高度方式,不使用vh就行了 2023-02-24 03:39:00 uniapp ·
苹果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&... 2023-02-19 05:07:00 猎奇 ·
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;... 2023-02-18 05:27:57 猎奇 ·
Microsoft 365 E5续订 作者教程 或者 网站截图1、注册开发者https://developer.microsoft.com/zh-cn/microsoft-365/dev-program中国、中文、个人项目、Office 加载项、可配置沙盒 -> 创建账号可以得到主账号修改oneDrive硬盘空间2、创建子账号https://admin.microsoft.com/Adminportal/Home#/homepage用户管理 - 添加用户 - 勾选 E5 开发者3、注册应用https://portal.azure.com/#view/Microsoft_AAD_I... 2023-02-18 03:20:00 猎奇 ·
美区Paypal注册流程 paypal注册美区,换绑gv号注册paypal(美区)步骤:美区IP,虚拟一个美国人信息。然后使用verifywithsms接收PayPal的短信验证接码:https://user.verifywithsms.com/个人信息生成:https://www.fakepersongenerator.com/ http://www.haoweichi.com/Index/custom_result/换绑验证成功后注册成功,然后设置中添加一个新的号码(不能直接更改),添加号码成功后,在点击更改,选择更改添加的号码作为主要号码。 2023-02-12 07:16:00 猎奇 ·
CDN厂商记录 1、Cloudflare https://www.cloudflare.com/2、七牛云https://www.qiniu.com/prices/kodo每个月可使用10G的免费存储量和10G的CDN流量与100万次的Get请求数3、又拍云https://www.upyun.com/league免费获取每月 10GB 存储空间 + 15GB 流量3、加速乐https://defense.yunaq.com/jsl/免费版每月3600G流量,每小时限制5GB流量 不支持SSL证书4、多吉云https://www.dogecloud.com/prod... 2023-02-08 04:52:00 未分类 ·
Alist 问题总结 挂载阿里云盘问题Docker或者报错Post "https://auth.aliyundrive.com/v2/account/token": dial tcp: lookup auth.aliyundrive.com on 183.60.82.98:53: read udp 172.17.0.2:46900->183.60.82.98:53: i/o timeout重启Docker / 删除容器重新添加 2023-02-07 12:48:46 未分类 ·
Twitter_Snowflake(雪花算法) import bigInt from 'big-integer'; // http://peterolson.github.io/BigInteger.js/ /** * Twitter_Snowflake(雪花算法) * * SnowFlake的结构如下(共64bits,每部分用-分开): * 0 - 0000000000 0000000000 0000000000 0000000000 0 - 00000 - 00000 - 000000000000 * | ----------------------|--------... 2023-01-31 09:13:00 JS ·
nginx 动态反向代理 配置 DNS 解析服务器:因为 proxy_pass 使用变量时无法正确解析域名,因此需要手动指定 DNS 解析服务器;location /_proxy/ { # 配置 DNS 服务器,proxy_pass 采用变量时需要指定 resolver 114.114.114.114 valid=3600s; } https://127.0.0.1/proxys/https://blog.itsse.cn/100.html# map 指令根据客户端请求头中 $http_upgrade 的值构建 $connection_upgrade 的值;... 2023-01-29 12:30:00 Nginx ·
Typecho 转移记录 2023-2-4配置sitemap.xmlhttps://github.com/jozhn/Sitemap-for-Typecho投送谷歌 https://search.google.com/ 报错:无法读取此站点地图2023-01-30typecho使用七牛云CDNcdn配置:https://blog.itsse.cn/481.htmlpost.php <?php $this->content(); ?> 改为 <?php echo $str = str_replace("blog.itsse.cn/usr/up... 2023-01-27 10:36:00 未分类 ·
uniapp wifi 小程序 let _this = this // 获取当前wifi uni.getConnectedWifi({ success: function(res) { console.log(res); _this.wifiData = res.wifi _this.setData.BSSID = res.wifi.BSSID _this.setData.SSID = res.wifi.SSID }, fail: function(err) { ... 2023-01-23 06:29:06 未分类 ·
微信小程序-小程序码 appId,secret 生成TOKEN. token去强求微信接口生产小程序码https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=${appId}&secret=${secret}https://api.weixin.qq.com/wxa/getwxacode?access_token=' + access_token request({ url:'https://api... 2023-01-23 06:05:56 未分类 uniapp Nginx ·