Posts
All the articles I've posted.
常用 HTTP 接口测试工具
Published: at 06:05 AM本文介绍了几款常用的 HTTP 接口测试工具,包括 JMeter、Postman、wrk、ab 和 Vegeta,并简要说明了它们的特性和使用方法。
正则表达式匹配字符串开头、中间包含特定内容和结尾的字符串
Published: at 05:20 PM使用正则表达式匹配以特定字符串开头,中间包含特定内容(例如'worker_threads'),并以特定字符串结尾的 JavaScript 代码片段。文章提供了解决方案并分析了不同正则表达式的优劣。
JS 解决 'Failed to execute 'put' on 'IDBObjectStore'...' 问题
Published: at 06:00 PM本文介绍如何解决 JavaScript 中 IndexedDB 的 'Failed to execute 'put' on 'IDBObjectStore': An object could not be cloned' 错误。该错误通常是因为存储对象包含不可序列化的数据类型(例如 Promise 对象)引起的。文章提供了几种解决方案,包括使用 `realistic-structured-clone` 库进行深拷贝,以及其他替代方案的比较。
JS MessageChannel 实现深拷贝
Published: at 05:21 PM使用 JavaScript 的 MessageChannel API 实现对象的深拷贝,并通过 Promise 处理异步操作,确保拷贝结果的正确性。