将以下代码放在functions.php,一个是获取阅读量,一个是设置阅读量 注意:调用了setPostViews函数后,每刷新一次就会增加一次浏览量。 在内容页(single.php,或page.php )尝试一下吧: 参考文档: http://wp-snippets.com/post-views ...
分类:
其他好文 时间:
2017-02-04 18:36:21
阅读次数:
157
我有两个github帐号,一个是个人所用,一个是为公司项目所用。如果是单用户(single-user),很方便,默认拿id_rsa与你的github服务器的公钥对比;如果是多用户(multi-user)如user1,user2,那么就不能用在user2的身上了,这个时候就要配置一下了: 1、新建us ...
分类:
其他好文 时间:
2017-02-04 14:32:31
阅读次数:
196
1: void QTimer::singleShot ( int msec, QObject * receiver, const char * member ) [static] 样例: #include <QApplication> #include <QTimer> int main(int a ...
分类:
其他好文 时间:
2017-02-03 10:39:48
阅读次数:
559
CAS 单点登录指导文档 1.概述 单点登录(Single Sign On),简称为 SSO,是目前比较流行的企业业务整合的解决方案之一。SSO的定义是在多个应用系统中,用户只需要登录一次就可以访问所有相互信任的应用系统。 耶鲁大学(yale)开发的单点登录(Single Sign On)系统称为C ...
分类:
其他好文 时间:
2017-02-01 22:29:09
阅读次数:
290
Most Distant Point from the Sea Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 5153 Accepted: 2326 Special Judge Description The main land ...
分类:
其他好文 时间:
2017-01-31 17:40:04
阅读次数:
165
Given an array of integers, every element appears twice except for one. Find that single one. 一个int型数组,除了其中一个元素以外,其他的均出现两次。 My Solution: Others' Solut ...
分类:
其他好文 时间:
2017-01-31 15:11:11
阅读次数:
195
转载请注明出处:http://www.cnblogs.com/liangyongrui/p/6354552.html 异或的妙用。 一开始读题不仔细,以为有很多的孤立数字。 没想到就两个- - 然后参考了别人的思路。 具体见代码: ...
分类:
其他好文 时间:
2017-01-28 22:07:19
阅读次数:
226
通过Remoting,客户端可以借助远程对象的代理对象,完成服务端的操作,下面是一个最初的demo,深入学习可以参考链接: http://www.cnblogs.com/xia520pi/archive/2011/11/02/2233371.html 服务端: 客户端: ...
分类:
其他好文 时间:
2017-01-28 18:56:15
阅读次数:
176
Spring,负责对象对象创建 Struts, 用Action处理请求 Spring与Struts框架整合, 关键点:让struts框架action对象的创建,交给spring完成! 步骤: 1)引入struts .jar相关文件 a、引入struts .jar相关文件 commons-fileup ...
分类:
编程语言 时间:
2017-01-26 14:00:51
阅读次数:
252
UVA10269 Adventure of Super Mario(Floyd+DP) After rescuing the beautiful princess, Super Mario needs to find a way home -- with the princess of course ...
分类:
其他好文 时间:
2017-01-24 11:00:52
阅读次数:
218