jjw

写给自己的博客。 记录学习的点滴以备查。
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2025年8月16日

摘要: 1 export interface IUser { 2 age?: number; 3 } 4 5 6 type GetRequiredKeys_A<T> = { 7 [K in keyof T]-?: 8 T[K] extends Required<T>[K] 9 ? K 10 : never 阅读全文

posted @ 2025-08-16 22:28 jjw 阅读(6) 评论(0) 推荐(0)

2025年1月11日

摘要: 不要设置baseURL或者mock(‘http://localhost:8800/getXXX‘,'get' {}) 或者在env中配置 阅读全文

posted @ 2025-01-11 16:39 jjw 阅读(22) 评论(0) 推荐(0)

2024年12月22日

摘要: 一、基础配置 1、配置文件名:按一般约定名字为 mybatis-config.xml 2、配置文件中的子属性(标签)用途: properties:指定相关参数(如数据库的用户名,密码等)的文件名,类似指定一个xxxx.ini文件。 方便在mybatis-config.xml中用$(xxxx)取值。 阅读全文

posted @ 2024-12-22 13:59 jjw 阅读(68) 评论(0) 推荐(0)

2024年6月29日

摘要: 一、尽可能设置父元素的高度(这是最简单、灵活的方式)。然后通过设置子元素的 flex-basis,flex-shrink,flex-grow分配空间,再使用justify-content, align-items. align-content进行版式控制。 二、父元素不设置高度,依靠子元素的高度来撑 阅读全文

posted @ 2024-06-29 12:37 jjw 阅读(38) 评论(0) 推荐(0)

2024年1月13日

摘要: unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, V 阅读全文

posted @ 2024-01-13 16:28 jjw 阅读(205) 评论(0) 推荐(0)

2024年1月11日

摘要: 一、安装过程中有一步要跳过检测安装,否则会花费很多时间。 二、安装后要修改镜像源为国内的:etc/apt/sources.list,这样后期apt install 时就方便了。 其它: 1、安装MYSQL wget https://repo.mysql.com//mysql-apt-config_0 阅读全文

posted @ 2024-01-11 11:56 jjw 阅读(69) 评论(0) 推荐(0)

2024年1月10日

摘要: 关于TJSONConverters的使用 unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.C 阅读全文

posted @ 2024-01-10 17:18 jjw 阅读(151) 评论(0) 推荐(0)

摘要: 涉及的重要类 REST.Json,REST.JsonReflect,REST.Json.Interceptors, REST.Json.Types单元中。 一、TJson类 最简单的一个类,提供了JSON -> OBJECT和OBJECT -> JSON几个方法,方法有TJsonOptions参数, 阅读全文

posted @ 2024-01-10 16:41 jjw 阅读(511) 评论(0) 推荐(0)

2024年1月7日

摘要: procedure TForm1.Button1Click(Sender: TObject); var v: variant; begin { [ODBC] DRIVER=SQL Server 会报错 DRIVER=ODBC Driver 18 for SQL Server 没问题 } dbProp 阅读全文

posted @ 2024-01-07 00:04 jjw 阅读(174) 评论(0) 推荐(0)

2023年9月20日

摘要: { TDateTimeConverter } function TDateTimeConverter.CanConvert(ATypeInf: PTypeInfo): Boolean; begin Result := True; end; function TDateTimeConverter.Re 阅读全文

posted @ 2023-09-20 21:35 jjw 阅读(52) 评论(0) 推荐(0)