摘要: windows:[{ fileDropEnable="false" }] 阅读全文
posted @ 2024-08-08 23:40 刘东才 阅读(4) 评论(0) 推荐(0)
摘要: pymssql._pymssql.OperationalError: (20002, b'DB-Lib error message 20002, severity 9:\nAdaptive Server connection failed (192.168.1.23)\nDB-Lib error m 阅读全文
posted @ 2024-01-18 11:58 刘东才 阅读(1818) 评论(1) 推荐(3)
摘要: 列子如下 :main.go 1 try.Catch(func(err error) { 2 //异常处理 3 fmt.Println(err) 4 }).Then(func() error { 5 //执行代码 1 6 //... 7 8 //如果有异常即抛出异常 9 return nil 10 } 阅读全文
posted @ 2023-12-06 19:12 刘东才 阅读(1102) 评论(0) 推荐(0)
摘要: 实现Auth接口 type auth struct { host string username string password string } func (a *auth) Start(server *smtp.ServerInfo) (proto string, toServer []byte 阅读全文
posted @ 2023-10-10 10:02 刘东才 阅读(382) 评论(0) 推荐(0)
摘要: 1 package email 2 3 import ( 4 "errors" 5 "gopkg.in/gomail.v2" 6 ) 7 8 var dialer *gomail.Dialer 9 10 func Reset(host string, port int, username, pass 阅读全文
posted @ 2023-10-08 17:38 刘东才 阅读(262) 评论(0) 推荐(0)
摘要: 直接代码 function from(form: string | HTMLFormElement, data: { [key: string]: any }) { let target: Element | null; if (form instanceof Element) { target = 阅读全文
posted @ 2023-09-25 11:30 刘东才 阅读(40) 评论(0) 推荐(0)
摘要: 表单函数 function form(formId,callback){ try{ const target=document.getElementById(formId); target.addEventListener("submit",(e)=>{ e.preventDefault(); co 阅读全文
posted @ 2023-09-24 13:04 刘东才 阅读(626) 评论(0) 推荐(0)
摘要: log.go package log import ( "fmt" "io" "log" "os" ) const ( Ldate = 1 << iota // the date in the local time zone: 2009/01/23 Ltime // the time in the 阅读全文
posted @ 2023-09-21 17:14 刘东才 阅读(54) 评论(0) 推荐(0)
摘要: docker-compose.yaml version: "3" networks: loki: services: loki: image: grafana/loki:2.9.0 ports: - "3100:3100" command: -config.file=/etc/loki/local- 阅读全文
posted @ 2023-09-21 09:09 刘东才 阅读(280) 评论(0) 推荐(0)
摘要: java.io.FileNotFoundException: ../sonatype-work/nexus3/tmp/i4j_ZTDnGON8hezynsMX2ZCYAVDtQog=.lock (Permission denied) 没有权限呀!!! docker image inspect son 阅读全文
posted @ 2023-09-18 13:57 刘东才 阅读(389) 评论(0) 推荐(0)