上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 49 下一页
摘要: PHP 在转换为布尔值时,以下值被认为是 false: 布尔值 false 本身 整型值 0(零) 浮点型值 0.0(零) 空字符串 "",以及字符串 "0" 不包括任何元素的数组 原子类型 NULL(包括尚未赋值的变量) 所有其他值都被认为是 true,包括非空字符串,即使它们包含的是 "fals 阅读全文
posted @ 2024-10-11 16:23 朝阳1 阅读(125) 评论(0) 推荐(0)
摘要: package main import ( "container/heap" "fmt" ) // IntHeap 是一个包含整数的切片,它实现了 heap.Interface 接口。 type IntHeap []int // Len 方法返回堆中的元素数量。 func (h IntHeap) L 阅读全文
posted @ 2024-10-11 15:29 朝阳1 阅读(33) 评论(0) 推荐(0)
摘要: 例如.env 修改 .gitignore # 加入 .env 执行命令 git rm --cached .env git commit -m "Remove .env from repository" git push 阅读全文
posted @ 2024-10-11 10:14 朝阳1 阅读(14) 评论(0) 推荐(0)
摘要: package main import ( "crypto/rand" "crypto/rsa" "crypto/x509" "encoding/base64" "encoding/pem" "errors" "fmt" ) // 私钥生成 // openssl genrsa -out rsa_pr 阅读全文
posted @ 2024-10-09 15:06 朝阳1 阅读(104) 评论(0) 推荐(0)
摘要: 方式1 package main import ( "fmt" "github.com/antlabs/timer" "time" ) type CurstomTest struct { count int } // 只要实现Next接口就行 func (c *CurstomTest) Next(n 阅读全文
posted @ 2024-10-08 16:15 朝阳1 阅读(24) 评论(0) 推荐(0)
摘要: Element Plus 的 Table 组件本身不提供内置的编辑功能。但是可以通过结合 Table 组件和 Form 组件来实现行级别的可编辑功能 <template> <el-table :data="tableData" style="width: 100%"> <el-table-colum 阅读全文
posted @ 2024-10-08 09:30 朝阳1 阅读(731) 评论(0) 推荐(0)
摘要: 文件 strace -e trace=file php 脚本.php 进程id strace -f -s 6555 -p 进程id 查看进程树 pstree -p 进程id pstree -p | grep php 阅读全文
posted @ 2024-10-07 16:46 朝阳1 阅读(17) 评论(0) 推荐(0)
摘要: 个人博客新地址 https://qzy123456.github.io 技术栈 PHP、Go、Python、Js、Rust、Html、Vue、Mysql、Redis、Mongo、Linux、Es、ClickHouse、K8s、Docker、分布式... 最近老是传博客园倒闭的消息。。。所以想把文章都 阅读全文
posted @ 2024-09-29 16:40 朝阳1 阅读(35) 评论(0) 推荐(0)
摘要: 新建git项目 首先在 GitHub 新建一个仓库(Repository),名称为 https://{username}.github.io,注意这个名比较特殊, 必须要是 github.io 为后缀结尾的。比如我的GitHub用户名就叫qzy123456,那我就新建一个qzy123456.gith 阅读全文
posted @ 2024-09-29 15:13 朝阳1 阅读(19) 评论(0) 推荐(0)
摘要: hyperf框架的orm其实就是基于laravel改造的。会laravel就会hyperf,只不过目前为止hyperf的文档都没有填充相关的。 生成迁移文件,这点文档有,具体可以参考文档 https://hyperf.wiki/3.1/#/zh-cn/db/migration php bin/hyp 阅读全文
posted @ 2024-09-28 17:55 朝阳1 阅读(264) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 49 下一页