客户区坐标位置clientX和clientY保存着鼠标指针在视口中的水平位置坐标和垂直位置坐标(显示出页面的部分叫做客户区,坐标信息不包括页面的滚动距离)var
div=document.getElementById("myDiv");EventUtil.addHandler(div,"click"...
分类:
编程语言 时间:
2014-06-12 17:19:46
阅读次数:
332
入住博客园,先秀段代码: 1 public class Singleton { 2 3
private static Singleton instance ; 4 5 6 private Singleton() { 7 } 8 9 10
public sync...
分类:
其他好文 时间:
2014-06-12 17:18:26
阅读次数:
315
Environment variable: "PATH" - This test checks
whether the length of the environment variable "PATH" does not exceed the
recommended length.预期值:1023实...
分类:
数据库 时间:
2014-06-12 17:25:20
阅读次数:
633
闭包 既保证了 内部函数的私有性 又可以向外公开通过一个已有对象 向它注入属性 1 /** 2
* 闭包 3 * 在函数中定义的函数,在外部使用 4 * 1、在函数内部定义的函数,在外部不能访问 5 */ 6 function a(){ 7 /** 8 *
b函数是...
分类:
Web程序 时间:
2014-06-12 17:23:55
阅读次数:
224
ie 与 Chrome 时间格式化通用: new
Date(res[i].Time.replaceAll("-", "/")).format("yyyy-MM-dd") replaceAll,
format是扩展方法 /* 所以可以用以下几种方式.: string.replace(new RegEx...
分类:
其他好文 时间:
2014-06-12 17:22:28
阅读次数:
293
本方法是通过使用ORACLE官方提供的精简版客户端,即绿色免安装的客户端。下载地址(此处提供的是官方各版本下载地址):Windows
32位系统中使用的客户端下载地址其他系统环境中使用的客户端下载地址Instant client的版本很多:主要是Basic和Basic Lite。
Basic版本包括...
分类:
数据库 时间:
2014-06-12 17:27:55
阅读次数:
447
package chap09_Medians_and_Order_Statistics;import
static org.junit.Assert.*;import java.util.Random;import org.junit.Test;public
class SearchAlorithm...
分类:
其他好文 时间:
2014-06-12 17:26:37
阅读次数:
316
启动linux进入到tomcat安装目录
/apache-tomcat-6.0.26/bin下运行 #./startup.sh start 停止tomcat时运行命令: #./shutdown.sh
start 远程查看tomcat的控制台 进入tomcat/logs/文件夹下 键入指令:tail ...
分类:
系统相关 时间:
2014-06-12 17:33:25
阅读次数:
334
? 确定使用数据库重放的优点? 列出数据库重放所涉及的步骤? 使用Enterprise Manager
记录和重放工作量为什么使用数据库重放? 系统更改(如硬件和软件升级)是不可避免的。? 客户需要在实施更改前确定更改的全面影响。?
大量的测试和验证可能会花费很多的时间和资金。? 测试除了成本昂贵之...
分类:
数据库 时间:
2014-06-12 17:32:05
阅读次数:
495
web.config connectionStrings
数据库连接字符串的解释(转载)先来看一下默认的连接SQL Server数据库配置
SqlConnectionStringBuilder实例化时需要使用connectionString。如:SqlConnectionStringBuild
bu...
分类:
数据库 时间:
2014-06-12 17:30:41
阅读次数:
421
1、链接的虚线框问题/* * a, img, input等标签点击时会带有虚线框 *
去除它*/.noDashedBox { outline:0; blr:expression(this.onFocus=this.blur());}2、固定定位
/* css */.fixedTop ...
分类:
Web程序 时间:
2014-06-12 17:37:32
阅读次数:
307
简介:
什么是SwiftSwift是苹果于2014年WWDC(苹果开发者大会)发布的全新编程语言Swift在天朝译为“雨燕”,右上角的图标就是它的LOGO跟Objective-C一样,可以用于开发iOS、Mac...
分类:
其他好文 时间:
2014-06-12 17:36:08
阅读次数:
266
1、AspNetPager简介
AspNetPager是一款开源、简单易用、可定制化等等各种优点的Web分页控件。2、使用方法
1)下载AspNetPager.dll文件(http://www.webdiyer.com/aspnetpager/downloads/)
2)添加对该文件的引用 ...
分类:
Web程序 时间:
2014-06-12 17:34:43
阅读次数:
348
原题地址:https://oj.leetcode.com/problems/jump-game-ii/题意:Given
an array of non-negative integers, you are initially positioned at the first
index of the ...
分类:
编程语言 时间:
2014-06-12 17:38:49
阅读次数:
323
${"%u"+java.lang.Integer.toHexString(region.toString().charAt(s.toInt()))}
这样转换成的每个字符后面会有空行,用的时候需要regionUnicode.toSt...
分类:
其他好文 时间:
2014-06-12 17:47:11
阅读次数:
186
在OSGi环境中,在Bundle内部代码中要得到自己Bundle的ClassLoader就很简单,在自己Bundle的代码中,直接写this.getClass().getClassLoader()就得到了自己Bundle的ClassLoader了。但怎么在其他Bundle或外部代码中得到任意一个Bu...
分类:
其他好文 时间:
2014-06-12 17:45:48
阅读次数:
176
解决办法方法:所以应该使用StringBuilder缓存,在startElement的时候调用sb.setLength(0);每次characters时调用sb.append(ch,
start, length);在endElement的时候才调用String str = sb.toString()
分类:
其他好文 时间:
2014-06-12 17:44:19
阅读次数:
232