上一页 1 2 3 4 5 6 ··· 25 下一页
如果想要删除 Git 项目下的所有 Commit 提交,可以使用以下方法。 1. 创建孤立分支,并切换到该分支:git checkout --orphan latest_branch 2. 暂存所有文件: git add -A 3. 提交所有更改: git commit -am "First Com Read More
posted @ 2024-01-31 12:34 走走停停走走 Views(189) Comments(0) Diggs(0) Edit
解决办法: 把 {**/*,*}.{js,ts,jsx,tsx,html,vue} 换成 {**/*,*}.(js,ts,jsx,tsx,html,vue) 原文: https://stackoverflow.com/questions/73509984/eslint-typeerror-this- Read More
posted @ 2024-01-24 21:11 走走停停走走 Views(304) Comments(0) Diggs(0) Edit
如果单纯的使用promise,对环境比较简单,只需要一个js文件即可。 // const p1 = new Promise((resolve, reject) => { // setTimeout(() => { // resolve('resolve') // }, 1000) // }) // Read More
posted @ 2024-01-14 21:48 走走停停走走 Views(195) Comments(0) Diggs(0) Edit
比特币(Bitcoin)底层技术原理 https://www.cnblogs.com/LittleHann/p/16885642.html Read More
posted @ 2024-01-04 17:31 走走停停走走 Views(10) Comments(0) Diggs(0) Edit
P2PKH P2PKH 是 Pay-To-Public-Key-Hash 的缩写,即支付到公钥哈希。该类型的交易脚本占比特币交易脚本的大多数。 P2PKH 锁定脚本形式如下: OP_DUP OP_HASH160 <pubKeyHash> OP_EQUALVERIFY OP_CHECKSIG P2PK Read More
posted @ 2024-01-04 17:22 走走停停走走 Views(98) Comments(0) Diggs(0) Edit
您应该能够在NextJS中使用process.env.<VARIABLE_NAME>访问env变量。如果这对你不起作用,请分享你所做的一切以及结果。 如果存在.env.local文件,则dotenv将覆盖.env dotenv.config(); dotenv.config({ path: `.en Read More
posted @ 2024-01-01 17:18 走走停停走走 Views(647) Comments(0) Diggs(0) Edit
前言:昨天遇到基于Nodejs启动多线程,以便不同服务之间可以调用(共享内存) worker_threadsnode官方文档注明了: worker_threads 模块允许使用并行地执行 JavaScript 的线程。与 child_process 或 cluster 不同, worker_thre Read More
posted @ 2023-12-30 11:54 走走停停走走 Views(98) Comments(0) Diggs(0) Edit
前言:实现完rpc接口后,开始进行性能优化,提升响应效率。 1,查全量表,如果表格几万条,甚至更多信息时,导致性能下降。 // const tickInfos = await knex(SRC20_TICK_TABLE); // const tickInfoMap = {} // for (let Read More
posted @ 2023-12-29 18:13 走走停停走走 Views(1) Comments(0) Diggs(0) Edit
前言:遇到科学计数法转字符串的问题。用如下toNonExponential可解决 function toNonExponential(num) { var m = num.toExponential().match(/\d(?:\.(\d*))?e([+-]\d+)/); return num.to Read More
posted @ 2023-12-28 17:01 走走停停走走 Views(101) Comments(0) Diggs(0) Edit
CURL 发送POST请求 curl -H "Content-Type: application/json" -X POST -d '{"user_id": "123", "coin":100, "success":1, "msg":"OK!" }' "http://192.168.0.1:8001 Read More
posted @ 2023-12-26 17:04 走走停停走走 Views(293) Comments(0) Diggs(0) Edit
上一页 1 2 3 4 5 6 ··· 25 下一页