AI发展看样子可以替代IT?当然不是,还早,关注AI没错,但不要忘了基础,基础是根本,AI是工具,工具再强大,也离不开人的操作。最近看到一个关于JS数组的问题,分享一下。
Apr 2, 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.
Mar 31, 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
Feb 19, 2025
最近私有化项目遇到个需求就是iframe包含的站点需要实现免密登陆。这里先大概想下几个方案。
Nov 24, 2024
You need to configure the language to implement syntax highlighting in Monaco Editor. Here, we introduce the related operations. Set Language If setting the language during initialization, the operation is as follows:
Nov 7, 2024
In projects, we often use many third-party NPM packages, such as Mousetrap. We usually encounter bugs that have not yet been fixed or merged by the official repository. So, what should we do in such cases? Here is a summary of the methods.
Oct 24, 2024
WEB如果提供了账户登录,我们自然可以区分。如果是匿名用户我们如何区分呢,这时就需要浏览器指纹了。浏览器指纹是浏览器在特定时间点上,由用户设备上所有可用的信息生成的唯一标识符。浏览器JS本身是无法直接提供指纹的,需要自行实现,当然社区已有成熟的类库,比如 fingerprintjs。
Oct 22, 2024
实际开发中经常解析UA头部来判断用户设备信息,比如判断是Win还是Mac,或者判断是不是移动设备等等。我们直接用userAgent的话就自己手动解析该字符串,并不是很方便。比较简单的办法是引入ua-parser-js,这是一个成熟的类库,有了它就可以方便的获取ua中携带的信息了。
Oct 18, 2024
最近项目需要提供用户有个可视化设计流程处理的feat,因此需要实现下可视化。这里调研总结下市面上的一些方案。
Oct 17, 2024
Due to bundle size issues, I’ve revisited babel-plugin-import. I wasn’t clear about this plugin before, so I’m organizing my understanding here. Plugin Introduction babel-plugin-import is a Babel plugin that supports modular imports. The functionality of the plugin is to convert full imports to on-demand imports based on configuration.
Sep 17, 2024