- 博客(9)
- 收藏
- 关注
我要每天进步多一点系列: javascript:获取对象属性的方法
var temp=[];for (var key in document.getElementById("upload").files[0]){ var a ="var c= document.getElementById('upload')."+ key; try { eval(a) } catch (e) { var a ="var c= d...
2011-01-13 01:24:06
106
原创 我要每天进步多一点系列:上传文件-获取图片的高度及宽度
BufferedImage bi = ImageIO.read(upload); if (bi.getHeight() > 120) { form.setResult(6); return SUCCESS; } if (bi.getWidth() > 120) { form.setResult(6); return...
2011-01-10 19:45:10
121
我要每天进步多一点系列: javascript-定时器setTimeout使用心得
1. 使用定时器- setTimeout 启用时 ,将会产生 objid ,要清除定时器必须使用该偶obj ,不然没效2. 当setTimeout 启动时,其函数内是采用启动时的状态,而不是使用 定时后的状态注:今天调试了好久时间...
2011-01-09 03:21:15
90
Discuz系列-正则表达式
@checktplrefresh 函数前加@ 如果错误,将不提示错误preg_replace 正则替代$patterns = array ("/(19|20)(\d{2})-(\d{1,2})-(\d{1,2})/", "/^\s*{(\w+)\(/"); $replace = array ("\\3/\\4/\\1\\2", "\\1");print pre...
2011-01-08 16:26:10
877
加速你的开发系列- 使用validate 校验器的心得
1.rule 里面的设定的各个项是以name 做为关键字,莫以id做为唯一值。 谨记 2.jQuery.validator.format 的使用列子 $("button").click(function () { var str = "Hello {0}, this is {1}"; alert("'" + str + "'"); ...
2011-01-07 14:10:58
100
解决Discuz7在Chrome中无法显示弹出窗口内容的问题
修改 include/js/common.js For Disczu 7.1/7.2 找到 $(ajaxframeid).contentWindow.document.documentElement.firstChild.nodeValue;修改为 $(ajaxframeid).contentWindow.document.documentElement.firstChild.wh...
2011-01-07 13:32:54
176
原创 ubuntu 软件安装问题- 包依赖不对(error while loading shared libraries)
出现以下错误的时候,error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory 代表某些包,软件是没有办法引用依赖包 因此 : 我们可以通过以下方法进行查找缺少的包的查找路径 LD_DEBUG=...
2011-01-07 10:16:12
436
tomcat 无法加载 JstlCoreTLV 出现 JasperException 的方法
由于其他服务器含有 standard.jar 而tomcat 没有 , 当引用 jstl的时候 出出现以下情况 JasperException: Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV 解决方法:原因lib中缺少sta...
2011-01-06 09:41:13
178
原创 redirectAction新旧版配置的区别-Strust2
旧版 uploadOk / ${result} 新版 uploadOk?result=${result} ...
2011-01-04 23:15:22
67
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人