`
piziwang
  • 浏览: 236483 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论
文章列表
来自:Robbin:   select * from ( select row_.*, rownum rownum_ from (...... ) row_ where rownum <= ?) where rownum_ > ?  

苹果模拟专题站

苹果模拟专题站里面有很多漂亮的苹果风格: http://www.nick-zone.com
1. String[] 字典顺序排序: String[] strs = {"a", "d", "c", "f", "e", "g", "h", "b"}; Arrays.sort(strs); /* // 根据需要重写 Comparator Arrays.sort(strs, new Comparator<String>(){ public int compare(String a, ...
一、创建新Java文件头部注释 windows-->preference Java-->Code Style-->Code Templates code-->new Java files 编辑它 ${filecomment} ${package_declaration} /** * @author 作者 * @version 创建时间:${date} ${time} * 类说明 */ ${typecomment} ${type_declaration} 二、为方法提供注释模板 设置方法注释模板:选择eclipse菜单栏中【窗口】下的【首选项 ...
Date.prototype.format = function(format){ var o = { "M+" : this.getMonth()+1, //month "d+" : this.getDate(), //day "H+" : this.getHours(), //hour "m+" : this.getMinutes(), //minute "s+ ...
文章中解释了 contains() 和 compareDocumentPosition() 方法运行在他们各自的浏览器上。在很多任务中,他们被证明是非常有用的(特别关于结构的抽象 DOM 选择器)。 1、DOMElement.contains(DOMNode) 这个方法起先用在 IE ,用来确定 DOM Node 是否包含在另一个 DOM Element 中。 当尝试优化 CSS 选择器遍历(像:“#id1 #id2”),这个方法很有用。你可以通过 getElementById 得到元素,然后使用 .contains() 确定 #id1 实际上是否包含 #id2。 注意点:如果 DOM ...
解决window.onresize事件多次调用问题: <script type="text/javascript"> var resizeTimer = null; function doResize(){ alert("width="+(document.documentElement||document.body).clientWidth + " Height="+(document.documentElement||document.body).clientHeight); } ...
网址:http://dillerdesign.com/experiment/DD_belatedPNG/ /** * DD_belatedPNG: Adds IE6 support: PNG images for CSS background-image and HTML <IMG/>. * Author: Drew Diller * Email: drew.diller@gmail.com * URL: http://www.dillerdesign.com/experiment/DD_belatedPNG/ * Version: 0.0.7a * Licensed ...
在window.open 打开的页面中加入: <script type="text/javascript"> if (window.opener) { window.opener.opener=null; window.opener.open('','_self'); window.opener.close(); } </script>  
Java生成高品质缩略图 import java.awt.image.BufferedImage; import java.io.File; import javax.imageio.ImageIO; public class ScaleImage { private int width; private int height; private int scaleWidth; double support = (double) 3.0; double PI = (double) 3.14159265358978; ...
xxx.innerHTML = '';  很重要,目前来看是最有效果的内存回收处理方式 。   http://birdshome.cnblogs.com/archive/2006/05/28/IE_MemoryLeak.html   Ext 的回收方式: http://fins.iteye.com/blog/172263   removeNode : isIE ? function(){ var d; return function(n){ if(n && n.tagName != 'BODY'){ ...
原文地址:http://blog.csdn.net/lql876381722/archive/2008/03/21/2203512.aspx   总体思想: 1.前台网页用js得到裁剪图片的id及x,y,宽度和高度。 2.服务端根据id取出要裁剪的图片 。 3.根据这些参数来生成裁剪的图像。 后台代码如下: package com.wodexiangce; import java.awt.Rectangle; import java.awt.image.BufferedImage; import java.io.File; import java.io ...
网上收集来的东东,看了下感觉和我当初的想法很相似,不过还没具体实现过。^__^     有时间好好弄弄~~~~ (一)断点续传的原理 其实断点续传的原理很简单,就是在Http的请求上和一般的下载有所不同而已。打个比方,浏览器请求服务器上的一个文时,所发出的请求如下: 假设服务器域名为wwww.sjtu.edu.cn,文件名为down.zip。 GET /down.zip HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms- excel, applicatio ...
使用Proxool连接池, 当在重启Tomcat容器时,出现      Exception in Thread "HouseKeeper" java.lang.NullPointerException   空指针异常错误。   原因是: 写道 This is because Proxool is not being shutdown properly. If the JVM stops then Proxool recognises that and shuts down gracefully, but if you redeploy Proxool int ...
正常的cookie只能在一个应用中共享,即一个cookie只能由创建它的应用获得。 1.可在同一应用服务器内共享方法:设置cookie.setPath("/");     本机tomcat/webapp下面有两个应用:cas和webapp_b,     1)原来在cas下面设置的cookie,在webapp_b下面获取不到,path默认是产生cookie的应用的路径。     2)若在cas下面设置cookie的时候,增加一条cookie.setPath("/");或者cookie.setPath("/webapp_b/ ...
Global site tag (gtag.js) - Google Analytics