- 博客(7)
- 资源 (10)
- 收藏
- 关注
原创 javascript获取屏幕位置
javascript获取屏幕位置网页可见区域宽: document.body.clientWidth网页可见区域高: document.body.clientHeight网页可见区域宽: document.body.offsetWidth (包括边线的宽)网页可见区域高: document.body.offsetHeight (包括边线的高)网页正文全文宽: document.body.scr
2007-12-03 15:51:00 579
原创 使用Hibernate annotation 注解,在添加实体时发生的错误
1: 注解的实体 @Entity@Table(name="category")@DiscriminatorValue("category")public class Category implements Serializable { private static final long serialVersionUID = 1L; private int id; priv
2007-11-27 09:00:00 698
原创 javascript 如何判断关闭窗口
window.onbeforeunload = function(){var n = window.event.screenX - window.screenLeft;var b = n > document.documentElement.scrollWidth-20;if(b && window.event.clientY { postTime(); window.event.returnVa
2007-11-26 14:08:00 684
原创 Javascript中window.setInterval和window.setTimeout的区别
[setTimeout] setTimeout(表达式,延时时间) 在执行时,是在载入后延迟指定时间后,去执行一次表达式,记住,次数是一次 用setTimeout实现的自动变化显示随机数的效果: window.onload=sett; function sett() { document.body.innerHTML=Math.random(); setTimeout("sett()",50
2007-11-26 09:03:00 436
原创 resin3.0.22 更新class文件后自动重启动的解决方案。
环境: resin3.0.22+JDK 1.5 启动命令:httpd.exe -Xdebug 这样,用Eclipse 保存文件,resin不需要重启就可以动态加载刚生成的class文件了。
2007-10-30 17:15:00 758
原创 常用JS
JS控制表单输入只能为数字:onpropertychange=if(/[^/-?/d*/.?/d{0,2}]/.test(this.value)) this.value=this.value.replace(/[^/-?/d*/.?/d{0,2}]/,"")
2007-10-22 20:52:00 406
转载 Velocity脚本摘要
Velocity判断空值方法:依据:$username与$!username的区别,当找不到username的时候,$username返回字符串"$username",而$!username返回空字符串"" 所以:#set($!username==) 可以判断字符串是否为空 以下为Velocity脚本摘要1、声明:#set ($var=XXX)左边可以是以下的内容Variable
2007-10-20 10:09:00 589
spring MVC demo
2011-09-30
easyexplore
2011-08-17
spring osgi
2011-08-12
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人