2010年4月25日

html 弹出框

摘要: window.open("popwin.jsp","Message","width=400,height=200,scrollbars=yes,toolbar=yes,location=no,directories=no,status=no,menubar=no,resizable=1;"); 阅读全文

posted @ 2010-04-25 12:42 sdh 阅读(334) 评论(0) 推荐(0)

html多文档属性

摘要: 1._blank <a href="document.html" target="_blank">my document</a> 浏览器会另开一个新窗口显示document.html文档 2._parent <a href="document.html" target="_parent">my document</a> 指向父frameset文档... 阅读全文

posted @ 2010-04-25 12:41 sdh 阅读(134) 评论(0) 推荐(0)

分页sql

摘要: hibernate分页 Query q = session.createQuery("from Cat as c");   q.setFirstResult(50);   q.setMaxResults(100);   List l = q.list(); sql分页 select top 10 * from 表名 where id not in (select top (当前页数-1)*每页显示... 阅读全文

posted @ 2010-04-25 12:40 sdh 阅读(187) 评论(0) 推荐(0)

orcale得到时间差1970-01-01 00:00:00——至今

摘要: round(to_number(to_date(to_char(sysdate,'yyyy-mm-dd'),'yyyy-mm-dd')-to_date('1970-01-01','yyyy-mm-dd')))*24*60*60*1000+to_number(to_char(sysdate,'HH24'))*60*60*1000+to_number(to_char(sysdate,'MI'))*60... 阅读全文

posted @ 2010-04-25 12:39 sdh 阅读(298) 评论(0) 推荐(0)

sql 创建表+约束

摘要: use lybgoif exists (select * from sysobjects where name='student')drop table studentcreate table student (id int identity(1,1),stuNumber int not null,stuName varchar(60) not null,password varchar(60) ... 阅读全文

posted @ 2010-04-25 12:38 sdh 阅读(168) 评论(0) 推荐(0)

JavaScript去掉html标签

摘要: function delHtmlTag(str) { return str.replace(/<[^>]+>/g,"");//去掉所有的html标记 } 阅读全文

posted @ 2010-04-25 12:36 sdh 阅读(440) 评论(0) 推荐(0)

java调用存储过程

摘要: JDBC调用存储过程(2009-02-24 22:46:39)标签:杂谈 分类:oracle ? 案例1– 添加员工,如果指定部门不存在,则先添加部门信息,再添加员工。– 特点:无返回值存储过程? 步骤– 开发sp_add_emp(部门号,部门名称,工号,姓名)– JDBC调用Connection conn = ...;CallableStateme... 阅读全文

posted @ 2010-04-25 12:33 sdh 阅读(288) 评论(0) 推荐(0)

tomcat5.0连接池

摘要: - <Context path="/power" docBase="D:/workspace/PowerEIP/WebRoot" debug="0" privileged="true"> <Resource auth="Container" name="jdbc/HDEIP" type="javax.sql.DataSource" /> - <ResourcePara... 阅读全文

posted @ 2010-04-25 12:33 sdh 阅读(121) 评论(0) 推荐(0)

java去掉html标签

摘要: public static String delHtmlTag(String content){ while(content.indexOf("<")>=0){ String str1 = ""; String str2 = ""; str1 = content.substring(0, content.indexOf("<")); str2 = content.subs... 阅读全文

posted @ 2010-04-25 12:31 sdh 阅读(233) 评论(0) 推荐(0)

jquery实时时间

摘要: function clockon() { thistime= new Date(); var hours=thistime.getHours() var minutes=thistime.getMinutes() var seconds=thistime.getSeconds() if (eval(hours) <10) {hours="0"+hours} if (eval(minute... 阅读全文

posted @ 2010-04-25 12:30 sdh 阅读(256) 评论(0) 推荐(0)

导航