jjw

写给自己的博客。 记录学习的点滴以备查。
随笔 - 127, 文章 - 0, 评论 - 8, 阅读 - 62632
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

随笔分类 -  Delphi

摘要: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 阅读(164) 评论(0) 推荐(0) 编辑

摘要:关于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 阅读(98) 评论(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 阅读(351) 评论(0) 推荐(0) 编辑

摘要:TConverterEx<T: class> = class(TJsonConverter) public function CanConvert(ATypeInf: PTypeInfo): Boolean; override; function ReadJson(const AReader: TJ 阅读全文

posted @ 2023-08-14 18:28 jjw 阅读(227) 评论(0) 推荐(0) 编辑

摘要:TConverterCommon = class(TJsonConverter) public function CanConvert(ATypeInf: PTypeInfo): Boolean; override; function ReadJson(const AReader: TJsonRea 阅读全文

posted @ 2023-08-14 14:54 jjw 阅读(302) 评论(0) 推荐(0) 编辑

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

posted @ 2023-08-09 17:00 jjw 阅读(314) 评论(0) 推荐(0) 编辑

摘要:一、扔上一个 TWebFileDispatcher 二、将RootDirectory属性设为 ./vite-project/dist 阅读全文

posted @ 2022-01-29 23:40 jjw 阅读(170) 评论(0) 推荐(0) 编辑

摘要:简单的封装了一下,有很多不完善的地方,很多细节未考虑进去。 client代码 unit ClientMainFormUnit; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, Syst 阅读全文

posted @ 2021-01-22 20:56 jjw 阅读(130) 评论(0) 推荐(0) 编辑

摘要:fetchData() { (async ()=> { const valueObj = { UserName: 'jjw', Tel: '123456' } let d2 = await fetch('http://127.0.0.1:8080/datasnap/rest/TServerMetho 阅读全文

posted @ 2020-11-07 20:20 jjw 阅读(218) 评论(0) 推荐(0) 编辑

摘要:procedure TWebModule1.WebModuleBeforeDispatch(Sender: TObject; Request: TWebRequest; Response: TWebResponse; var Handled: Boolean); begin if UpperCase 阅读全文

posted @ 2020-11-06 22:57 jjw 阅读(190) 评论(0) 推荐(0) 编辑

摘要:1 uses 2 Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, 3 Vcl.Controls, Vcl.Forms, Vcl.Dialogs, IdBa 阅读全文

posted @ 2020-03-29 21:20 jjw 阅读(373) 评论(0) 推荐(1) 编辑

摘要:dataset.first while not dataset.eof do begin --N行代码 dataset.next; end 讨厌上面的写法了,作个封装. 1 interface 2 3 uses 4 System.SysUtils, System.Classes, Data.DB; 阅读全文

posted @ 2020-03-29 01:17 jjw 阅读(180) 评论(0) 推荐(0) 编辑

摘要:delphi 10.2+up3 win7 自带IIS 发布测试 客户端用DSRestConnection1连接. 问题是 datasnap (群qq:67803772)一个 群友提出的, 经过摸索发现 DSRestConnection1.urlPath 需要设置为 IIS发布的名称 + 访问路径 测 阅读全文

posted @ 2020-03-05 15:54 jjw 阅读(357) 评论(0) 推荐(0) 编辑

摘要:try {// http.post 调用 updatelogin 方法 http.get 调用 login 方法 const { data: res } = await this.$http.post('/TSM/login/', { _parameters: [this.loginForm.use 阅读全文

posted @ 2020-02-19 14:59 jjw 阅读(409) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示