- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 sqlserver分页
1、sqlserver分页语句:select top 10 * from StudentDetaileTAB where id not in(select top 20 id from StudentDetaileTAB order by id desc);2、mysql分页语句:select * from table1 limit (pa
2016-11-29 11:29:33 221
原创 redis主从和集群配置
1、redis安装 wget或curl下载最新版redis的tar.gz包。2、tar -zxvf redis-3.2.5.tar.gz 得到redis-3.2.53、cd redis-3.2.5,然后执行make ,再执行make install。4、redis-server redis.conf启动redis服务。5、使用redis-cli -h ip地址 -p 6379连接r
2016-11-10 16:15:39 282
原创 jdk动态代理如此简单
1、jdk动态代理是一种非常常用的功能。具体方法如下:写一个代理实现类,该类要实现InvocationHandler接口,并且重写invoke方法,在构造器初始化一些参数。然后在被代理对象使用的时候,不用再直接对象.方法()来使用,而是要用Proxy.newInstance(被代理对象,必须用的参数);这种方式来实现。特别简单。
2016-11-10 16:05:18 267
原创 对于html页面历史记录的控制
项目中,经常遇到用户一直退步出去的问题,这种问题有两种解决办法:1、控制用户的前进方向,比如history.go(-1) , history.go(-2)等等。2、用window.location.pushState()和window.onpopstate()组合方法,console.log('1111 '+ history.length);var json={ti
2016-11-09 10:41:37 3611
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人