ITeye博客

wohenshuaiba的博客

wohenshuaiba · 共 15 篇文章

oracle导出

用oracle自身的exp和IMP导出方法为: 1 exp 用户名/密码@数据库 tables=(xxxx) file=c:\xxx.dmp query="" 这是在WINDOWS平台下,对其他平台的话,要注意一下双引号转义: exp ….. query=\”where col1 \< 1000\” exp ….. query=\”where col1 \< ’1000′\” 或者干脆写在一个文件TXT里,就不用考虑这么多了,比如 首先建立一个1.txt文件: tables=employee file=f:/exp.dmp query="where birthday>= to_date('1…

2014-06-09 15:21 · oracle 导出 · 评论(0)

IIFE

介绍IIFE IIFE的性能 使用IIFE的好处 IIFE最佳实践 jQuery优化 在 Bootstrap源码 (具体请看《 Bootstrap源码解析 》)和其他jQuery插件经常看到如下的写法: Js代码 +function ($) { }(window.jQuery); 这种写法称为: IIFE (Imdiately Invoked Function Expression 立即执行的函数表达式)。 一步步来分析这段代码。 先弄清 函数表达式(function expression) 和 函数声明(function declaration)的区别: 函数表达式 Function Ex…

2014-05-15 16:53 · javascript · 评论(0)

equals方法的重写

equals方法重写的建议: 1)显式参数命名为otherObject,稍后需要将它转换成另一个叫做other的变量 2)检测this与otherObject是否引用同一个对象:if(this == otherObject) return true; 3) 检测otherObject是否为null,如果为null,返回false.if(otherObject == null) return false; 4)比较this与otherObject是否属于同一个类 如果equals的语义在每个子类中有所改变,就使用getClass检 测:if(getClass()!=otherObject.ge…

2013-03-07 09:06 · Java · 评论(0)

js笔记

一 JavaScript code ? 1 2 3 4 if (!("a" in window)) { var a = 1; } alert (a); 二 JavaScript code ? 1 2 3 4 5 var a = 1, b = function a (x) { x && a (--x); }; alert (a); 三 JavaScript code ? 1 2 3 4 5 function a (x) { return x * 2; } var a; alert (a); 四 JavaScript code ? 1 2 3 4 5 function b (x, y, a) {…

2013-01-08 09:25 · javascript · 评论(0)

jqPlot的Option配置对象详解

如果看过本文姊妹篇《 jqPlot——基于jquery的图表绘制工具 》的朋友,应该知道jqPlot大致的操作方法;如果还是不太清楚的话,可以参考jqPlot官方网站的 使用方法介绍 。这里主要介绍jqPlot中核心部分——Option配置对象。同时,也会对jqplot的各个渲染器做个简单介绍。 这里主要是参考jqPlot官方网站关于Option的介绍并结自己简单实践和理解来对Option的相关属性进行解释,如有不合适或错误的地方请指正。 options = { seriesColors: [ "#4bb2c5", "#c5b47f", "#EAA228", "#579575", "#839…

2012-10-29 20:18 · jquery jqplot · 评论(0)

jqPlot——基于jquery的页面图表绘制工具

摘自 http://gaoyusi.blog.163.com/blog/static/294042532009620020236/ 可能是个人认识能力有限,一直认为仅仅靠html是很难展现稍具动态的图表的,但是在看到jqPlot之后,我的认识有了很大改变, jqplpt ——基于HTML的图表展示插件,而且不生成图片,最可贵的是能生成类似flex的数据动态提示以及动态改变数据展示范围等等。 jqplot是基于一个基本的jqplot.js文件,并有多个js文件支持的插件——也就是说jqplot.js文件只能支持线状图的绘制,对于饼状图,柱状图等图形需要引入pieRenderer.js等文件。 …

2012-10-29 20:17 · jquery jqplot · 评论(0)

jqPlot 图形报表插件柱状图(jquery)

摘自 http://hi.baidu.com/hemes1314/item/99ac8bd41093dfcc1b72b404 jqplot默认制作曲线图,如果想做柱状图,必须引入plugin包中的插件js: 一、几个简单柱状图实例: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>demo1.html</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <!-- jquer…

2012-10-29 20:16 · jquery jqplot · 评论(0)

js笔记之Math random()、ceil()、floor()、round()

JavaScript: The Definitive Guide, 4th Edition中对Math.ceil(),Math.floor()与Math.round()三个函数的定义。 Math.random() 返回 0 ~ 1 之间的随机数。 Math.ceil() ceil() 方法可对一个数进行上舍入。 参数必须是一个数值。返回值大于等于 x,并且与它最接近的整数。 Math.floor() floor() 方法可对一个数进行下舍入。 参数可以是任意数值或表达式。返回值小于等于 x,且与 x 最接近的整数。 Math.round() round() 方法可把一个数字舍入为最接近的整数…

2012-08-05 22:13 · 评论(0)

JAVA 发送邮件

发送邮件的代码的可以看:http://www.iteye.com/topic/352753 当我复制好代码时出现了: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream at javax.mail.Session.loadProvidersFromStream(Session.java:928) at javax.mail.Session.access$000(Session.java:174) at javax.mail.Session$1.load(Ses…

2012-06-28 22:37 · Java 邮件 · 评论(0)

Java中遍历Map的方法s

import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Set; public class ggg { public static void main(String[] args) { Map<String, String> map = new HashMap<String, String>(); map.put("a", "1"); map.put("b", "2"); //1 Set<Map.Entry<String, String>> set = map.en…

2012-06-28 15:06 · Java中遍历Map的方法 · 评论(0)

JS中function, new function, new Function,Function

函数是JavaScript中很重要的一个语言元素,并且提供了一个 function 关键字和内置对象 Function ,下面是其可能的用法和它们之间的关系。 使用方法一: var foo01 = function () // or fun01 = function () { var temp = 100 ; this .temp = 200 ; return temp + this .temp; } alert( typeof (foo01)); alert(foo01()); 运行结果: function 300 最普通的 function 使用方式,定一个JavaScript函数。两种…

2012-03-29 16:12 · JS function newFunction · 评论(0)

计算机常用一些有用的代码。

一、清理 @echo off echo 清空IE临时文件目录... del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*" del /f /s /q "%userprofile%\Local Settings\Temp\*.*" echo 正在清除系统临时文件 *.tmp *._tmp *.log *.chk *.old ,请稍等... del /f /s /q %systemdrive%\*.tmp del /f /s /q %systemdrive%\*._mp del /f /s /q %syst…

2011-10-28 10:11 · 清理无用文件 右击鼠标出现‘用记事本打开’ · 评论(0)

【Java】比较两个日期相差的天数

http://goby2008.iteye.com/blog/135878 比较两个日期相差的天数: import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; /* * 计算两个日期之间的天数。 */ public class TestDate { public static void main(String[] args) throws ParseException { final long DAY = 24l…

2011-08-09 15:17 · 评论(0)

用Java判断一个URL是否有效的两种方法

方法一: import java.io.InputStream; import java.net.URL; public class Test { public static void main(String[] args) { URL url; try { url = new URL("http://www.baidu.com"); InputStream in = url.openStream(); System.out.println("连接可用"); } catch (Exception e1) { System.out.println("连接打不开!"); url = null; …

2011-06-18 14:57 · 评论(4)

Java冒泡排序【代码】

引用了12616383的冒泡排序,我对其进行了改进~呵呵,下面是原文章链接!! http://www.iteye.com/topic/552814 class TSort{ private long[] a; public TSort(long[] array){ this.a = array; } public static void main(String[] args) { long[] array = new long[]{5,3,3,7,9,2,0}; TSort b = new TSort(array); b.bubbleSort(); System.out.println(b)…

2011-04-18 10:49 · 评论(0)