摘要: VirtualBox安装CentOS后,再安装增强功能就可以共享文件夹、粘贴板以及鼠标无缝移动,主要步骤如下: 1、yum -y update 2、yum -y install g++ gcc gcc-c++ make kernel-* # 主要是在安装增强工具提示没有安装这些软件 3、yum -y 阅读全文
posted @ 2018-01-04 19:35 gentsir 阅读(33185) 评论(1) 推荐(1)
摘要: 一、问题 从 Redis 中取出的 hvals 值排序是随机的(参看:https://github.com/phpredis/phpredis#hvals The order is random and corresponds to redis' own internal representatio 阅读全文
posted @ 2018-01-03 13:47 gentsir 阅读(336) 评论(0) 推荐(0)
摘要: /** * JS获取距当前时间差 * * @param int time JS毫秒时间戳 * */ function get_time_diff(time) { var diff = ''; var time_diff = new Date().getTime() - time; // 计算相差天数 var days = Math.floor(ti... 阅读全文
posted @ 2017-12-28 19:18 gentsir 阅读(4082) 评论(3) 推荐(0)
摘要: 1、安装SVN服务[root@bogon ~]# yum -y install subversion 2、查看svnserve安装目录[root@bogon ~]# whereis svnservesvnserve: /usr/bin/svnserve /usr/share/man/man8/svn 阅读全文
posted @ 2017-12-24 03:03 gentsir 阅读(1375) 评论(1) 推荐(0)
摘要: 描述两个事情的不同,一般先从概念入手,然后分析他们是怎么生成、怎么使用以及怎么消亡的: 1、Cookie仅由客户端生成、管理并使用,PHP只是发出指令要求客户端如何生成Cookie、何时过期等,但是客户端不一定会按照PHP的指令办事。 2、如果没有设置Cookie过期时间,Cookie会一直以文件或 阅读全文
posted @ 2017-11-29 21:17 gentsir 阅读(367) 评论(0) 推荐(0)
摘要: // 前台代码 $.ajax({ url: 'http://www.ushark.net/home/save_trial_apply', dataType: 'jsonp', processData: false, data: $('.layui-layer-content #trialFormIn 阅读全文
posted @ 2017-11-24 11:52 gentsir 阅读(1928) 评论(0) 推荐(0)
摘要: JS中0为false,字符串‘0’为true 阅读全文
posted @ 2017-11-16 18:07 gentsir 阅读(514) 评论(0) 推荐(0)
摘要: 因为项目用到Datatables发现在分页特别多时无法跳转到指定页,自己动手增加了#Datatables 跳转到指定页#功能,实现代码如下: 阅读全文
posted @ 2017-11-08 16:24 gentsir 阅读(4082) 评论(0) 推荐(1)
该文被密码保护。 阅读全文
posted @ 2017-11-02 17:20 gentsir 阅读(288) 评论(9) 推荐(2)
摘要: 今天在项目中用php foreach数据库查询结果时,为了方便没有判断数据是否存在,直接用(array)强制转换数据时,刚开始网页始终打不开,就报502,一头懵,突然间php报“Cannot create references to elements of a temporary array exp 阅读全文
posted @ 2017-09-13 19:39 gentsir 阅读(353) 评论(0) 推荐(0)