会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
hailπ
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
下一页
2022年4月
rust 在windows系统上构建linux可执行程序
摘要: 安装 linux target rustup target add x86_64-unknown-linux-musl 修改cargo配置,~/.cargo/config [target.x86_64-unknown-linux-musl] linker = "rust-lld" cargo bui
阅读全文
posted @ 2022-04-01 16:54 hailπ
阅读(412)
评论(0)
推荐(0)
2022年3月
composer 引入本地指定包
摘要: 开发类库时,本地需要测试一下,在没有push时,如何引入正在开发的包? { "repositories": [ { "type": "path", "url": "D:\\Data\\yii2-adminlte3" } ] } type必须时path,url时指定的是包路径,然后 composer
阅读全文
posted @ 2022-03-30 07:56 hailπ
阅读(1170)
评论(0)
推荐(0)
php中 json_encode 不自动转移斜杠 “/”的方法
摘要: json_encode([],JSON_UNESCAPED_SLASHES)
阅读全文
posted @ 2022-03-24 12:02 hailπ
阅读(172)
评论(0)
推荐(0)
2022年2月
windows 编辑 hosts
摘要: 以管理员身份打开终端 terminal 输入: notepad "C:\Windows\System32\drivers\etc\hosts"
阅读全文
posted @ 2022-02-19 11:56 hailπ
阅读(48)
评论(0)
推荐(0)
2021年11月
数组深度
摘要: function arrayDeep($arr) { $deep = 0; if (is_array($arr)) { ++$deep; $ad = []; foreach ($arr as $v) { $ad[] = arrayDeep($v); } $ad && $deep += max($ad
阅读全文
posted @ 2021-11-04 14:38 hailπ
阅读(27)
评论(0)
推荐(0)
2021年3月
yii2 formatter 中 raw 与 html 的区别
摘要: yii\i18n\FormatterasRaw() - 输出值和原始值一样,除了null值会用nullDisplay格式化,这是一个伪格式器; yii\i18n\FormatterasHtml() - 值会被HtmlPurifier过滤来避免XSS跨域攻击;
阅读全文
posted @ 2021-03-08 18:04 hailπ
阅读(121)
评论(0)
推荐(0)
2020年10月
yii2 (not set), GridView
摘要: 'components' => [ ... 'formatter' => [ 'nullDisplay' => '', ], ... ],
阅读全文
posted @ 2020-10-29 14:00 hailπ
阅读(92)
评论(0)
推荐(0)
2020年5月
composer require 加载本地扩展包
摘要: 创建目录composerLocal,composer init(一路回车) ====== 创建packages目录创建一个扩展包 ====== 创建一个扩展包 ===== 扩展包的composer.json文件中,name 和 目录名一致 配置composer.json ==== 配置扩展包的com
阅读全文
posted @ 2020-05-02 23:58 hailπ
阅读(2928)
评论(0)
推荐(0)
2020年4月
yii2 adminlte, yii2整合adminlte3
摘要: AdminLTE 是一个完全响应管理模板,现使用adminlte最新版本3,基于bootstrap4。 安装模板 composer require --prefer-dist hail812/yii2-adminlte3
阅读全文
posted @ 2020-04-26 00:59 hailπ
阅读(1331)
评论(0)
推荐(0)
Nginx访问PHP文件的File not found
摘要: 更改配置文件nginx.conf 替换成下面 然后重新加载nginx配置文件
阅读全文
posted @ 2020-04-23 16:06 hailπ
阅读(746)
评论(0)
推荐(0)
laravel ajax 显示 419 (unknown status)
摘要: laravel中发送ajax请求报419,是因为csrf的值没有设置 页面头部添加 js中使用
阅读全文
posted @ 2020-04-23 16:04 hailπ
阅读(614)
评论(0)
推荐(0)
Laravel 出现 No application encryption key has been specified
摘要: 若文件根目录下没有 .env 1、.env.example 改名使用命令 copy 修改为 .env 2、使用命令 php artisan key:generate 获取密码,自动保存到 .env 3、将密码复制到config/app.php 中的key里面 4、重新运行,OK。 如有.env 的情
阅读全文
posted @ 2020-04-23 15:33 hailπ
阅读(139)
评论(0)
推荐(0)
dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
摘要: ``` php -v dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib Referenced from: /usr/local/bin/php Reason: image not found [1] 93359 abort php -v brew switch openssl 1.1 Error:
阅读全文
posted @ 2020-04-23 15:27 hailπ
阅读(792)
评论(0)
推荐(0)
2019年11月
Non-terminating decimal expansion; no exact representable decimal result
摘要: BigDecimal除法运算出现java.lang.ArithmeticException: Non-terminating decimal expansion; no exact representable decimal result 分析: 通过BigDecimal做除法运算时,在不整除出现无
阅读全文
posted @ 2019-11-06 10:35 hailπ
阅读(1779)
评论(0)
推荐(0)
2019年6月
jquery选中select第一个option,类似重置
摘要: $('select').prop('selectedIndex', 0); // 项目中 jQuery v2.1.1
阅读全文
posted @ 2019-06-04 09:14 hailπ
阅读(742)
评论(0)
推荐(0)
2019年5月
php foreach 循环数组要点
摘要: 数组元素是值的情况,foreach只是将数组的每个元素的值进行拷贝: 数组元素是对象的情况,foreach是将数组元素的对象引用进行拷贝: 那么,上面普通数组也可以拥有同样的效果:
阅读全文
posted @ 2019-05-30 17:13 hailπ
阅读(409)
评论(0)
推荐(0)
2019年4月
laravel的日志权限
摘要: 命令行脚本运行时报错 UnexpectedValueException : The stream or file "/Data/PMS/storage/logs/laravel-2019-04-17.log" could not be opened: failed to open stream: P
阅读全文
posted @ 2019-04-26 16:53 hailπ
阅读(1940)
评论(0)
推荐(0)
2017年8月
mac chrome 强制刷新浏览器缓存
摘要: 普通刷新 command + r 强制刷新 command + shift + r
阅读全文
posted @ 2017-08-16 09:48 hailπ
阅读(237)
评论(0)
推荐(0)
阿里云服务器ssh经常一段时间就断掉解决办法
摘要: #vim /etc/ssh/sshd_config 找到下面两行 #ClientAliveInterval 0#ClientAliveCountMax 3 去掉注释,改成 ClientAliveInterval 30ClientAliveCountMax 86400 这两行的意思分别是 1、客户端每
阅读全文
posted @ 2017-08-05 13:14 hailπ
阅读(3804)
评论(0)
推荐(0)
2016年9月
如何关闭git pull产生的merge 信息
摘要: 编辑 ~/.gitconfig 或者终端之行 git config --global core.mergeoptions --no-edit
阅读全文
posted @ 2016-09-29 18:24 hailπ
阅读(3637)
评论(0)
推荐(0)
1
2
3
4
下一页
公告