Dev
搜索

Dev

git 不跟踪文件权限变化
发表于2022-05-23|php
1git config --global core.fileMode false
yii2数据验证
发表于2022-05-22|php
12345678910use yii\base\DynamicModel;$model = DynamicModel::validateData(compact('id', 'content'), [ [['id', 'content'], 'required', 'message' => '必须输入内容'], [['id'], 'number'], [['content'], 'string', 'min' => 1, 'max' => 255, 'message' => '内容长度应在1-255个字符之间'],]);if ($model->hasErrors()) { return $this->error($m...
error- cannot lock ref 'refs-remotes-origin- 解决办法
发表于2022-05-19|php
1git gc --prune=now
yii2通过命令行生成模型等
发表于2022-05-18|php
1php yii gii/model --tableName user --modelClass Test
golang 时区
发表于2022-05-15|golang
12loc, _ := time.LoadLocation("Asia/Shanghai")time.Unix(t, 0).In(loc).Format("2006-01-02 15:04:05") // 注意这里是15
让thinkphp5支持环境变量.env文件
发表于2022-04-29|php
thinkphp5本来就支持环境变量文件 在入口定义环境变量前缀1234567// 环境变量前缀define('ENV_PREFIX', '');// 定义应用目录define('APP_PATH', __DIR__ . '/../application/');// 加载框架引导文件require __DIR__ . '/../thinkphp/start.php'; 获取变量1getenv() 目前发现不能用$_ENV
wsl部分命令
发表于2022-04-23|others
12net stop LxssManagernet start LxssManager 终止停止某个发行版 1wsl --terminate Ubuntu
Why is gRPC better-worse than REST- gRPC为何比rest好或者差
发表于2022-03-25|golang
gRPC 在很大程度上遵循 HTTP/2 之上的 HTTP 语义,但我们明确允许全双工流式传输。我们与典型的 REST 约定不同,因为我们在调用调度期间出于性能原因使用静态路径,因为从路径、查询参数和有效负载正文中解析调用参数会增加延迟和复杂性。我们还形式化了一组错误,我们认为这些错误比 HTTP 状态代码更直接适用于 API 用例
yii2 动态验证
发表于2022-02-25|php
123456$model = \yii\base\DynamicModel::validateData($data, [ [['login_id', 'name'], 'required'],]);if ($model->hasErrors()) {}
composer
发表于2022-02-24|php
https://blog.csdn.net/weixin_47616219/article/details/115004119 1composer config -g platform-check false
1…161718…102
avatar
developer
AI相伴的开发者博客
文章
1020
标签
721
分类
35
Follow Me
公告
This is my Blog
最新文章
taro+tailwind开发记录2026-04-07
hono js 使用记录2026-03-31
cmder使用记录2026-03-08
flutter getx使用记录2026-03-01
统计代码行数2026-02-27
分类
  • apicloud3
  • bootstrap8
  • cmder1
  • cocos2d-js5
  • createjs17
  • day45
  • docker16
  • egret14
标签
备份 bug SSL 部分产品对比 utf8 常用算法 nginx ffmpeg 占位符 swarm 效果 等工具 1 语法高亮 conda jssdk ibdata1 模板字符串 读取 模型初始化 wp_filter 启动 数据不更新问题 腾讯云 nginx日志 获取 恢复 我的全新开始 指定目录 无法开启 文件 攻击 M方法 macos 工作模式 laravel trait 播放声音 tsc版本不同 workerman
归档
  • 四月 2026 1
  • 三月 2026 3
  • 二月 2026 5
  • 一月 2026 3
  • 十二月 2025 5
  • 十一月 2025 2
  • 十月 2025 5
  • 九月 2025 5
网站信息
文章数目 :
1020
最后更新时间 :
© 2025 - 2026 By developer框架 Hexo 8.1.1|主题 Butterfly 5.5.4
搜索
数据加载中