摘要:
以下代码可实现鼠标放在该链接后自动点击的效果,至于什么用处大家看着办吧,呵....开动你的大脑吧.<script language="JavaScript" type="text/JavaScript"> var autoclick_ok=false; var cishu = 1function mClk() { if(!autoclick_ok && cishu==1){ var source=event.srcElement;source.click(); cishu+=1;} } </script><f 阅读全文
随笔档案-2011年5月21日
JAVA功能代码《13》----在Java中调整数组大小
2011-05-21 17:18 by java线程例子, 240 阅读, 收藏,
摘要:
13.在Java中调整数组大小public class resizeArray { /** * Reallocates an array with a new size, and copies the contents of the old * array to the new array. * * @param oldArray * the old array, to be reallocated. * @param newSize * the new array size. * @return A new array with ... 阅读全文
JAVA功能代码《12》----使用NIO快速复制文件
2011-05-21 17:15 by java线程例子, 239 阅读, 收藏,
摘要:
12.使用NIO快速复制文件public static void fileCopy(File in, File out) throws IOException { FileChannel inChannel = new FileInputStream(in).getChannel(); FileChannel outChannel = new FileOutputStream(out).getChannel(); try { inChannel.transferTo(0, inChannel.size(), outChannel); // original -- apparent... 阅读全文
JAVA功能代码《11》----Java中将Array转换成Map
2011-05-21 17:14 by java线程例子, 321 阅读, 收藏,
摘要:
11.Java中将Array转换成Map下面是参考代码String[][] countries = { { "United States", "New York" }, { "United Kingdom", "London" }, { "Netherland", "Amsterdam" }, { "Japan", "Tokyo" }, { "France", "Paris" } }; Map c 阅读全文
浙公网安备 33010602011771号