摘要: 安装 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π 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 开发类库时,本地需要测试一下,在没有push时,如何引入正在开发的包? { "repositories": [ { "type": "path", "url": "D:\\Data\\yii2-adminlte3" } ] } type必须时path,url时指定的是包路径,然后 composer 阅读全文
posted @ 2022-03-30 07:56 hailπ 阅读(950) 评论(0) 推荐(0) 编辑
摘要: json_encode([],JSON_UNESCAPED_SLASHES) 阅读全文
posted @ 2022-03-24 12:02 hailπ 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 以管理员身份打开终端 terminal 输入: notepad "C:\Windows\System32\drivers\etc\hosts" 阅读全文
posted @ 2022-02-19 11:56 hailπ 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 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π 阅读(22) 评论(0) 推荐(0) 编辑
摘要: yii\i18n\FormatterasRaw() - 输出值和原始值一样,除了null值会用nullDisplay格式化,这是一个伪格式器; yii\i18n\FormatterasHtml() - 值会被HtmlPurifier过滤来避免XSS跨域攻击; 阅读全文
posted @ 2021-03-08 18:04 hailπ 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 'components' => [ ... 'formatter' => [ 'nullDisplay' => '', ], ... ], 阅读全文
posted @ 2020-10-29 14:00 hailπ 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 创建目录composerLocal,composer init(一路回车) ====== 创建packages目录创建一个扩展包 ====== 创建一个扩展包 ===== 扩展包的composer.json文件中,name 和 目录名一致 配置composer.json ==== 配置扩展包的com 阅读全文
posted @ 2020-05-02 23:58 hailπ 阅读(2864) 评论(0) 推荐(0) 编辑
摘要: AdminLTE 是一个完全响应管理模板,现使用adminlte最新版本3,基于bootstrap4。 安装模板 composer require --prefer-dist hail812/yii2-adminlte3 阅读全文
posted @ 2020-04-26 00:59 hailπ 阅读(1243) 评论(0) 推荐(0) 编辑
摘要: 更改配置文件nginx.conf 替换成下面 然后重新加载nginx配置文件 阅读全文
posted @ 2020-04-23 16:06 hailπ 阅读(678) 评论(0) 推荐(0) 编辑
摘要: laravel中发送ajax请求报419,是因为csrf的值没有设置 页面头部添加 js中使用 阅读全文
posted @ 2020-04-23 16:04 hailπ 阅读(479) 评论(0) 推荐(0) 编辑
摘要: 若文件根目录下没有 .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π 阅读(136) 评论(0) 推荐(0) 编辑
摘要: ``` 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π 阅读(780) 评论(0) 推荐(0) 编辑
摘要: BigDecimal除法运算出现java.lang.ArithmeticException: Non-terminating decimal expansion; no exact representable decimal result 分析: 通过BigDecimal做除法运算时,在不整除出现无 阅读全文
posted @ 2019-11-06 10:35 hailπ 阅读(1484) 评论(0) 推荐(0) 编辑
摘要: $('select').prop('selectedIndex', 0); // 项目中 jQuery v2.1.1 阅读全文
posted @ 2019-06-04 09:14 hailπ 阅读(730) 评论(0) 推荐(0) 编辑
摘要: 数组元素是值的情况,foreach只是将数组的每个元素的值进行拷贝: 数组元素是对象的情况,foreach是将数组元素的对象引用进行拷贝: 那么,上面普通数组也可以拥有同样的效果: 阅读全文
posted @ 2019-05-30 17:13 hailπ 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 命令行脚本运行时报错 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π 阅读(1897) 评论(0) 推荐(0) 编辑
摘要: 普通刷新 command + r 强制刷新 command + shift + r 阅读全文
posted @ 2017-08-16 09:48 hailπ 阅读(209) 评论(0) 推荐(0) 编辑
摘要: #vim /etc/ssh/sshd_config 找到下面两行 #ClientAliveInterval 0#ClientAliveCountMax 3 去掉注释,改成 ClientAliveInterval 30ClientAliveCountMax 86400 这两行的意思分别是 1、客户端每 阅读全文
posted @ 2017-08-05 13:14 hailπ 阅读(3758) 评论(0) 推荐(0) 编辑
摘要: 编辑 ~/.gitconfig 或者终端之行 git config --global core.mergeoptions --no-edit 阅读全文
posted @ 2016-09-29 18:24 hailπ 阅读(3395) 评论(0) 推荐(0) 编辑