会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
奥格瑞玛
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
2018年9月30日
解决 git pull 报错 fatal: refusing to merge unrelated histories
摘要: 我在Github新建一个仓库,写了License,然后把本地一个写了很久仓库上传。 先pull,因为两个仓库不同,发现refusing to merge unrelated histories,无法pull 因为他们是两个不同的项目,要把两个不同的项目合并,git需要添加一句代码,在git pull
阅读全文
posted @ 2018-09-30 10:45 格罗玛什·地狱咆哮
阅读(463)
评论(1)
推荐(0)
2018年6月4日
php 的 number_format使用
摘要: $num = 1.0258963147; // 1.0259 $num = number_format($num, 4, '.', ''); // 1 $num = number_format($num); $num = 50000; // 50,000 $num = number_format($num); // 50000.00 $num = number_format($num...
阅读全文
posted @ 2018-06-04 14:08 格罗玛什·地狱咆哮
阅读(304)
评论(1)
推荐(0)
2018年5月8日
Yii2获取当前程序执行的sql语句
摘要: 1、Yii2获取当前程序执行的sql语句: $query = model::find(); $dataProvider = new ActiveDataProvider([ 'query' => $query, 'pagination' => [ 'pagesize' => '25', ] ]);
阅读全文
posted @ 2018-05-08 08:59 格罗玛什·地狱咆哮
阅读(899)
评论(1)
推荐(0)
2018年4月17日
apache 配置跨域访问
摘要: 在httpd.conf找到 去掉# 然后在 独立域名配置 加入
阅读全文
posted @ 2018-04-17 15:12 格罗玛什·地狱咆哮
阅读(534)
评论(1)
推荐(0)
Yii2 指定log存放的文件
摘要: 在main.php 文件里添加
阅读全文
posted @ 2018-04-17 13:32 格罗玛什·地狱咆哮
阅读(283)
评论(1)
推荐(0)
2018年4月2日
PHP 重新格式化var_dump/print_r打印的数组
摘要: // 在使用var_dump/print_r时 打印出来的数组 都是一行显示的, 看起来不方便function dump($vars, $label = '', $return = false) { if (ini_get('html_errors')) { $content = "\n"; if ($label != '') { ...
阅读全文
posted @ 2018-04-02 15:12 格罗玛什·地狱咆哮
阅读(596)
评论(2)
推荐(0)
Yii 判断是不是post方式提交的数据
摘要: 一、在controller里判断提交是不是通过post方式: 1 if(Yii::$app->request->isPost){ 2 return true; 3 }else{ 4 return false; 5 } isget 同样 <img width="200px" src="data:ima
阅读全文
posted @ 2018-04-02 15:10 格罗玛什·地狱咆哮
阅读(1587)
评论(2)
推荐(0)
上一页
1
2
3
4
5
6
公告