03 2023 档案
摘要:Person: Please give me an example where gin implements server push and the front end receives data. ChatGPT: Sure! Here's an example of how you could
阅读全文
摘要:Person: There are many form pages in the system (which can be viewed or edited). Different pages have different fields, and the fields interact with e
阅读全文
摘要:Person: A large typescript project takes a long time to start every time, using the default configuration of webpack5, is there any optimization solut
阅读全文
摘要:在设计使用 Redis 的系统和使用 Gin 的数据库时,需要牢记几个架构注意事项。 这是一个可能的架构设计: API 层:API 层处理传入的请求并提供响应。 该层负责验证输入、验证用户并将请求路由到适当的服务层。 服务层:服务层包含应用程序的业务逻辑。 它应该负责与 Redis 和数据库进行交互
阅读全文
摘要:Person: How to implement login in the system using gin and html template? ChatGPT: To implement a login system using the Gin web framework and HTML te
阅读全文
摘要:Person: JavaScript实现非对称加密 ChatGPT: JavaScript 可以使用公钥密码学算法来实现非对称加密。常用的公钥密码学算法包括 RSA 和 ECC。 下面是一个使用 RSA 算法实现非对称加密的示例: // 生成 RSA 密钥对 const { publicKey, p
阅读全文
摘要:看SpreadJS的在线编辑器可以正常粘贴,可能是公司用的版本太老了。 什么是数字验证 可以给单元格设置数据验证器,有数、日期、文本长度等官方验证器,非相同类型的数据填入单元格就会触发校验提示。 为什么千分位数字被识别成了非数字 Excel中设置了格式的数字——比如123,456,789.00,在复
阅读全文
摘要:优化import 快捷键是^⌥O / Ctrl+Alt+O 选项在Preferences / Settings | Editor | Code Style | JavaScript or TypeScript and select Sort imports by modules on the Imp
阅读全文