上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: function Map() { var struct = function(key, value) { this.key = key; this.value = value; } var put = function(key, value){ for (var i = 0; i < this.ar 阅读全文
posted @ 2017-12-26 17:24 itvita 阅读(254) 评论(0) 推荐(0) 编辑
摘要: /** * 此JS文件是格式化JS中日期时间的工具类,其中包含了传入日期对象Date,格式化成想要的格式,<br> * 或者传入字符串格式的时间个,次字符串日期对应的格式可以转换为相应的日期对象,<br> * 可以计算两个日期之间的差值 * * y: 表示年 * M:表示一年中的月份 1~12 * 阅读全文
posted @ 2017-12-26 17:23 itvita 阅读(1153) 评论(0) 推荐(0) 编辑
摘要: Centos升级到7之后,内置的防火墙已经从iptables变成了firewalld。所以,端口的开启还是要从两种情况来说明的,即iptables和firewalld。更多关于CentOs防火墙的最新内容,请参考Redhat官网。 一、iptables 1.打开/关闭/重启防火墙 2.查看打开的端口 阅读全文
posted @ 2017-12-20 16:19 itvita 阅读(197) 评论(0) 推荐(0) 编辑
摘要: MongoDB 提供了 linux 各发行版本 64 位的安装包,你可以在官网下载安装包。 下载地址:https://www.mongodb.com/download-center#community 下载完安装包,并解压 tgz(以下演示的是 64 位 Linux上的安装) 。 1.去官网下载安装 阅读全文
posted @ 2017-12-20 15:16 itvita 阅读(7842) 评论(0) 推荐(0) 编辑
摘要: 下载编译包 http://nginx.org/en/download.html >> nginx-1.8.1.tar.gz 安装依赖包 yum install gcc gcc-c++ pcre* openssl* gd-devel* zlib-devel pcre-devel 解压并进入目录 tar 阅读全文
posted @ 2017-12-19 16:34 itvita 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 前人总结: Cordova是Apache软件基金会的一个产品。其前身是PhoneGap,由Nitobi开发,2011年10月,Adobe收够了Nitobi,并且PhoneGap项目也被贡献给Apache软件基金会。Apache在2012年12月,发布了Cordova,截止到2015年12月,最新版面 阅读全文
posted @ 2017-12-15 16:59 itvita 阅读(477) 评论(0) 推荐(0) 编辑
摘要: 效果: oralce写法: select WM_CONCAT(A.title) as citys from tmpcity A sql server写法: select stuff((select ','+A.title from tmpCity A FOR xml PATH('')), 1, 1, 阅读全文
posted @ 2017-12-14 18:02 itvita 阅读(25051) 评论(10) 推荐(1) 编辑
摘要: 1. 官网http://redis.io/ 下载最新的稳定版本,这里是3.2.0 2. sudu mv 到 /usr/local/ 3. sudo tar -zxf redis-3.2.0.tar 解压文件 4. 进入解压后的目录 cd redis-3.2.0 5. sudo make test 测 阅读全文
posted @ 2017-12-11 23:45 itvita 阅读(1770) 评论(0) 推荐(0) 编辑
摘要: ClassPathXmlApplicationContext appCtx = new ClassPathXmlApplicationContext("spring-redis.xml"); final RedisTemplate<String, Object> redisTemplate = ap 阅读全文
posted @ 2017-12-11 14:49 itvita 阅读(1873) 评论(0) 推荐(0) 编辑
摘要: document.onmousedown = function(e){ var ev = document.all ? window.event : e; var _con = $("#cicon"); // 设置目标区域 if(!_con.is(e.target) && _con.has(e.ta 阅读全文
posted @ 2017-12-09 17:35 itvita 阅读(1173) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页