最近一个项目用的腾讯tea组件,其中有个Copy组件,依赖的是copyToClipboard,而copyToClipboard依赖的是document.execCommand('copy'),这个API其实有坑,这里总结下。
9月 25, 2025
AI发展看样子可以替代IT?当然不是,还早,关注AI没错,但不要忘了基础,基础是根本,AI是工具,工具再强大,也离不开人的操作。最近看到一个关于JS数组的问题,分享一下。
4月 2, 2025
Will AI replace IT? Not anytime soon. Keep an eye on AI, but don’t forget the fundamentals — they’re the foundation, and AI is just a tool. Here’s a JS array question to illustrate some basics.
4月 2, 2025
表单作为用户交互中常见形式,值的验证/状态管理是个问题。 在react技术栈下中React Hook Form包名: react-hook-form功能强大,对于复杂表单管理,是个不错的方案。 为了能灵活恰当的使用它,这里把常用场景/使用/容易忽略的点/核心原理做一个总结,如有疏漏,请斧正。
3月 31, 2025
Forms are a common interaction method in user interfaces, and validating/managing their state can be challenging. In the React ecosystem, React Hook Form package name: react-hook-form is a powerful solution for complex form management. To use it flexibly and appropriately, this guide summarizes common scenarios, usage patterns, easily overlooked points, and core principles. Please provide feedback if there are any omissions.
3月 31, 2025
常用插件 "eslint-config-tencent" "plugin:react/recommended", "plugin:@typescript-eslint/recommended", "plugin:react-hooks/recommended" 相关地址 https://www.npmjs.com/package/eslint-config-tencent
2月 19, 2025
Common Plugins "eslint-config-tencent" "plugin:react/recommended", "plugin:@typescript-eslint/recommended", "plugin:react-hooks/recommended" Related Links https://www.npmjs.com/package/eslint-config-tencent
2月 19, 2025
Highlights how default lodash imports pull in the full bundle, shows safer import patterns, and compares the savings from switching to lodash-es.
12月 11, 2024
Recently, in a private project, I encountered a requirement where sites embedded in iframes needed to implement passwordless login. Here are some initial thoughts on possible solutions. IP Whitelist for Passwordless Login? Any request to the server can obtain the client IP from the request object, making IP-based authentication possible. However, the drawback is that users cannot log in once they change their network environment.
11月 24, 2024
最近私有化项目遇到个需求就是iframe包含的站点需要实现免密登陆。这里先大概想下几个方案。
11月 24, 2024