会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
pengcx
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
7
8
9
10
11
12
13
14
15
···
24
下一页
2018年8月10日
linux常用快捷键
摘要: Ctrl+c 强制终止当前命令Ctrl+l 清屏Ctrl+a 光标移动到命令行首Ctrl+e 光标移动到命令行尾Ctrl+u 从光标所在位置删除到行首Ctrl+z 把命令放入后台Ctrl+r 在历史命令中搜索Shift + PageUp 向上翻页Shift + PageDown 向下翻页
阅读全文
posted @ 2018-08-10 09:53 pengcx
阅读(111)
评论(0)
推荐(0)
2018年8月8日
Centos7 yum install vim 出现“could not retrieve mirrorlist”
摘要: ps:来源 https://www.cnblogs.com/justphp/p/5959655.html 办法一:改dns解析 vim /etc/resolv.conf 添加: nameserver 8.8.8.8 search localdomain 结果:没用! 办法二:修改镜像源 vim /e
阅读全文
posted @ 2018-08-08 15:50 pengcx
阅读(1538)
评论(0)
推荐(0)
2018年8月7日
vi三种模式的切换
摘要: 基础上vi/vim共分为三种模式,分别是命令模式,输入模式和底线命令模式。 一、命令模式用户刚刚启动vi/vim,便进入了命令模式。在此状态下敲击键盘动作会被vim识别为命令,而非输入字符。比如我们此时按下i,并不会输入一个字符,i被当做了一个命令。一下是常用的几个命令:1、i切换到输入模式,以输入
阅读全文
posted @ 2018-08-07 15:20 pengcx
阅读(16251)
评论(0)
推荐(1)
2018年7月31日
纯css实现蒙层loading效果
摘要: test 点击
阅读全文
posted @ 2018-07-31 17:22 pengcx
阅读(1042)
评论(0)
推荐(0)
2018年7月26日
php多表查询数据合并,避免foreach循环嵌套
摘要: $memberList = $member->getMemberList(); $members = []; if (is_array($memberList)) { foreach ($memberList as $item) { $members[$item["id"]] ...
阅读全文
posted @ 2018-07-26 20:30 pengcx
阅读(587)
评论(0)
推荐(0)
2018年7月24日
跨域问题
摘要: header("Access-Control-Allow-Origin: 域名");header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");header('Access-Contro
阅读全文
posted @ 2018-07-24 15:56 pengcx
阅读(92)
评论(0)
推荐(0)
2018年7月19日
查看MySQL语句变量了多少行数据
摘要: explain MySQL语句 列如 explain SELECT * FROM 表名 WHERE id=1;
阅读全文
posted @ 2018-07-19 14:14 pengcx
阅读(157)
评论(0)
推荐(0)
2018年7月16日
字符串超过特定长度使用...代替
摘要: function intercept($str,$length = 10){ if (strlen($str)>$length) $str=substr($str,0,$length) . '...'; return $str; }
阅读全文
posted @ 2018-07-16 09:20 pengcx
阅读(319)
评论(0)
推荐(0)
2018年6月28日
linux学习
摘要: 1、mkdir [目录名] //创建目录2、mkdir -p [目录名] //递归创建目录3、cd [目录] //切换目录4、ctrl + L //清屏操作5、pwd //当前目录6 、Tab键自动补全7、rmdir [目录名] //删除空目录8、rm -rf [文件或目录] //删除文件或目录 -
阅读全文
posted @ 2018-06-28 13:58 pengcx
阅读(98)
评论(0)
推荐(0)
2018年6月25日
js监听微信、支付宝返回,后退、上一页按钮事件
摘要: $(function(){ pushHistory(); window.addEventListener("popstate", function(e) { alert("我监听到了浏览器的返回按钮事件啦");//根据自己的需求实现自己的功能 }, false); function pus...
阅读全文
posted @ 2018-06-25 15:32 pengcx
阅读(385)
评论(0)
推荐(0)
上一页
1
···
7
8
9
10
11
12
13
14
15
···
24
下一页
公告