2013年4月9日

摘要: enctype="multipart/form-data" 文件上传private File logo_path;//机构有效身份证明文件 private String logo_pathContentType;// 上传文件类型 private String logo_pathFileName;// 上传头像文件名称 private static String Upd = StringConverter.getDateTimeToString(new Date()).substring(0,8); public String shenFenupload(){ try { 阅读全文
posted @ 2013-04-09 14:49 远方的人 阅读(631) 评论(0) 推荐(0) 编辑
摘要: java 中String agent = this.getRequest().getHeader("User-Agent"); boolean isMSIE = (agent != null && agent.indexOf("MSIE") != -1); Firefoxjs 中if (navigator.userAgent.indexOf("Firefox")>0) { // Mozilla, Safari, ... } else if (navigator.userAgent.indexOf("MS 阅读全文
posted @ 2013-04-09 14:13 远方的人 阅读(138) 评论(0) 推荐(0) 编辑
摘要: jsvar indestryblur=function(){}<input type=''text'' onblur="indestryblur"> 这种方法 可能无法理解onblur 事件可以使用 事件绑定加载时绑定 $("document").ready(function(){ $("input:[name=t.industry]").bind("blur",indestryblur); }); //绑定 function indstryunbind(){ //ale 阅读全文
posted @ 2013-04-09 14:06 远方的人 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 区分本地js代码和服务端解析后传给本地的代码,,'<s:if test="ss=='+ii+'">' struts 是服务端解析后传入浏览器 ,ii 是本地js ,不能混合使用, 可运用 局部刷新技术实现局部刷新 , 也可以全部解析后在使用js 进行帅选注意: js 和jsp 代码解析的顺序 , var indestryHtmlEr="<s:iterator value='indestryThree'><s:if test='code.substring(0,2)==" 阅读全文
posted @ 2013-04-09 14:02 远方的人 阅读(258) 评论(0) 推荐(0) 编辑

导航