posted @ 2023-08-15 16:20 jjw 阅读(386) 评论(0) 推荐(0) 编辑
摘要:
unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, V 阅读全文
摘要:
TConverterEx<T: class> = class(TJsonConverter) public function CanConvert(ATypeInf: PTypeInfo): Boolean; override; function ReadJson(const AReader: TJ 阅读全文
posted @ 2023-08-14 18:28 jjw 阅读(206) 评论(0) 推荐(0) 编辑
摘要:
TConverterCommon = class(TJsonConverter) public function CanConvert(ATypeInf: PTypeInfo): Boolean; override; function ReadJson(const AReader: TJsonRea 阅读全文
posted @ 2023-08-14 14:54 jjw 阅读(290) 评论(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 阅读(282) 评论(0) 推荐(0) 编辑
摘要:
typeorm中的createContection已经被废弃,改为DataSource,dataSource.initialize()方法会连接数据库,返的是个promise. const con = new DataSource({ type: 'mssql', ...options, optio 阅读全文
posted @ 2023-07-12 17:53 jjw 阅读(16) 评论(0) 推荐(0) 编辑
摘要:
const fp = require('fastify-plugin') const { DataSource } = require('typeorm') function dbPlugin(fastify, options, done) { const con = new DataSource( 阅读全文
posted @ 2023-07-12 17:49 jjw 阅读(8) 评论(0) 推荐(0) 编辑
摘要:
const routes = (fastify, options, done) => { fastify.post('/login', async (request, reply) => { return 'ok' }) fastify.get('/getBooks', async (request 阅读全文
posted @ 2023-07-12 17:43 jjw 阅读(12) 评论(0) 推荐(0) 编辑
摘要:
fastify.addContentTypeParser('application/mydata', { parseAs: 'string' }, function (req, body, done) { try { //对数据进行处理, done(null, body) } catch (err) 阅读全文
posted @ 2023-07-12 17:31 jjw 阅读(26) 评论(0) 推荐(0) 编辑
摘要:
:deep(table thead tr th) { background-color: yellowgreen !important; } 之前设置表头单元格样式的属性没有了,测试发现这样可以 阅读全文
posted @ 2023-06-05 21:37 jjw 阅读(561) 评论(0) 推荐(0) 编辑