- 博客(8)
- 资源 (1)
- 收藏
- 关注
原创 iframe加载完毕事件
var oFrm = document.getElementById('mainFrame');oFrm.onreadystatechange = function() {if ( this.readyState == 'complete') {alert("加载完毕");}}
2013-06-06 09:14:51
690
转载 document.execCommand()函数可用参数解析
1 input type=button value=剪切 onclick=document.execCommand('Cut')> 2 3 input type=button value=拷贝 onclick=document.execCommand('Copy')> 4 5 input type=button value=粘贴 onclick=document.execCom
2011-12-29 15:46:43
295
转载 sql查询上一条下一条数据
---上一条 select top 1 * from table1 where ID> 原记录的ID order by ID ---下一条 select top 1 * from table1 where ID <原记录的ID order by ID desc--合起来为一个记录集 se
2011-11-30 10:05:26
555
转载 JSTL标签用法
JSTL标签用法关键字:JSTL标签、、、、、、、、、、、、、、原来一直没有看过,我说过我是新手,但是好多资料上似乎也不重视 JSTL 。我看项目源代码发现其中使用到了这个标签库,感觉其还真是方便,页面看起来更加清爽。减少了 JAVA 程序员亲自写的代码量,还真验证了,不懒不做程序员,程序员如果写代码不想着偷懒,那么生活是很无趣的。下面总结总结,学习学习。:)JSP 标准标记库(
2011-11-29 15:26:51
269
转载 java判断是否为数字的三种方法
//用JAVA自带的函数 public static boolean isNumeric(String str){ for (int i = str.length();--i>=0;){ if (!Character.isDigit(str.charAt(i))){ return false; }
2011-11-15 13:59:19
701
原创 获取getJdbcTemplate().queryForList(sql)数据
Iterator it = users.iterator();if(it.hasNext()){ Map user = (Map)it.next(); String id=user.get("id").toString(); -----}
2011-11-14 15:59:39
2282
原创 jstl应用——取得list长度
jstl 取list 长度例1:输出长度http://java.sun.com/jsp/jstl/core" prefix="c" %>http://java.sun.com/jsp/jstl/functions" %>例2:长度比较查询结果为0.例3:字符串截取:request中含str="abcdefghijklmnopqrstuvwxyz"
2011-11-10 16:06:37
1003
转载 利用Javascript取和设FCKeditor值
// 获取编辑器中HTML内容function getEditorHTMLContents(EditorName) {var oEditor = FCKeditorAPI.GetInstance(EditorName);return(oEditor.GetXHTML(true));}// 获取编辑器中文字内容function getEditorTextContents(Ed
2011-10-26 10:12:59
341
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人