摘要: 参考文档/博文:http://yueqian.sinaapp.com/a/52.html 用的是2.5的protobuf,下载地址:https://github.com/google/protobuf,我的博客文件里面也有 系统:linux 1.二话不说先解压文件 2.看一下安装成功没有 3.添加环 阅读全文
posted @ 2017-09-22 09:28 MauriceChans 阅读(1775) 评论(0) 推荐(0) 编辑
摘要: 使用案例 function e(callback){ if(callback){ callback(); } } function func1(callback){ $('#wrapper').before('<div class="zhidao"></div>'); $('.zhidao').an 阅读全文
posted @ 2017-06-16 12:49 MauriceChans 阅读(271) 评论(0) 推荐(0) 编辑
摘要: function Copy(str){ var save = function(e){ e.clipboardData.setData('text/plain', str); e.preventDefault(); } document.addEventListener('copy', save); document.execCom... 阅读全文
posted @ 2017-05-24 15:29 MauriceChans 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 缩放 阅读全文
posted @ 2017-05-22 11:10 MauriceChans 阅读(375) 评论(0) 推荐(0) 编辑
摘要: 修改linux服务器配置php.ini vi /usr/local/php/etc/php.ini vi /usr/local/php/etc/php.ini / session.save_path 打开前面分号保存退出 重启PHP-FPM:/etc/init.d/php-fpm restart 阅读全文
posted @ 2017-02-13 15:07 MauriceChans 阅读(3462) 评论(0) 推荐(0) 编辑
摘要: test 随便做做 隐藏在背后的元素 初始显示在前面的元素 阅读全文
posted @ 2017-01-05 08:46 MauriceChans 阅读(1055) 评论(0) 推荐(0) 编辑
摘要: 这里以四边形为例: 第一步:确定区域的四个点的坐标 var px = Number(($(this).offset().left).toFixed(2)); var py = Number($(this).offset().top.toFixed(2)); ...假设这里获取到的坐标为 触摸点坐标: 阅读全文
posted @ 2017-01-03 16:04 MauriceChans 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 目标功能:将B服务器文件同步到A服务器 A服务器rsyncd.conf配置 权限600 A服务器rsyncd.pas文件配置 权限600 同步文件路径 /data/wwwroot/shen/ 权限755 打开873端口:iptables -I INPUT 4 -p tcp -m state --st 阅读全文
posted @ 2016-12-27 14:21 MauriceChans 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-11-26 17:02 MauriceChans 阅读(303) 评论(0) 推荐(0) 编辑
摘要: “工欲善其事,必先利其器。” 这是古人的教诲,也是一个高效率的工程师需要遵循的法则之一。从大学开始写Java使用了JBuilder,Eclipse,后来写PHP用了Zend,写JavaScript的时候用了Aptana。这些都是非常优秀的IDE,在各自的语言和应用开发环境中给程序员们提供了极大的便利 阅读全文
posted @ 2016-10-20 01:25 MauriceChans 阅读(669) 评论(0) 推荐(0) 编辑