- 博客(6)
- 收藏
- 关注
原创 gulp中的browser-sync用法
刚刚开始学习nodejs和gulp,发现gulp也是基于nodejs的,于是边看文档边自己写了一个browser-sync来实践。browser-sync大名鼎鼎,在学习gulp之前就看过它炫酷的效果,十分想拥有。自己配置之后,前端编程就更加方便了。以下是browser-sync的实现代码:var gulp = require('gulp');var browserSync =
2017-05-24 20:52:24
773
原创 ajax异步实验
在前端中,ajax经常被使用。以下我们看看ajax的异步是怎样表现出来的: $.get('index.php', {}, function(response){ console.log('1st'); }); $.get('login.php', {}, function(response){ console.log('2nd'); }); $.
2017-04-05 18:45:22
926
原创 【不断更新】各种中文编码及其转义方法
$str = "我爱广州";URL编码:urlencode($str): %e6%88%91%e7%88%b1%e5%b9%bf%e5%b7%9e;urldecode($str): 我爱广州;UNICODE编码:json_encode($str): \u6211\u7231\u5e7f\u5dde;json_decode('"'.$str.'"'): 我爱广州;json_encod
2017-03-25 23:44:18
3771
原创 No space left on device: AH00023: Couldn't create the proxy mutex 解决方法
服务器版本:CentOS Linux release 7.2.1511 (Core)Apache版本: Apache/2.4.6 (CentOS)因为业务原因,需要在定时不断重启Apache服务器。这个自动重启的crontab一直持续了几天,然后服务器挂了一开始在VPS的后台重启,然后Apache服务器又正常跑crontab,但近几天崩溃得频繁了,于是去找httpd的log(/
2017-03-07 22:55:07
2758
原创 无法启动Genymotion,出现VirtualBox错误码:0x80004005 解决方法
在Android Studio里,使用Genymotion,出现E_FAIL (0x80004005)的新解决方法
2016-11-05 10:58:26
19553
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人