2013年4月18日

摘要: 避免显示时出现科学计数法if(Utils.isBlank(capital)){ DecimalFormat df = new DecimalFormat("0.####"); this.capital=String.valueOf(df.format((double)t.getCapital()/10000)); } 阅读全文
posted @ 2013-04-18 09:42 远方的人 阅读(147) 评论(0) 推荐(0) 编辑

2013年4月17日

摘要: 表达式意义:1.字符x 字符 x。例如a表示字符a\\ 反斜线字符。在书写时要写为\\\\。(注意:因为java在第一次解析时,把\\\\解析成正则表达式\\,在第二次解析时再解析为\,所以凡是不是1.1列举到的转义字符,包括1.1的\\,而又带有\的都要写两次)\0n 带有八进制值 0的字符 n (0 <= n <= 7)\0nn 带有八进制值 0的字符 nn (0 <= n <= 7)\0mnn 带有八进制值 0的字符 mnn(0 <= m <= 3、0 <= n <= 7)\xhh 带有十六进制值 0x的字符 hh\uhhhh 带有十六进制 阅读全文
posted @ 2013-04-17 16:14 远方的人 阅读(289) 评论(0) 推荐(0) 编辑

2013年4月16日

摘要: $(body).find("not(.vnn)").click(function(){ alert("fd"); $("#indestryjiegou").html(""); $("#indestryjiegouEr").html(""); $("#indestryjiegouSan").html(""); });not 不常用 ,因为 not外元素不可控 ,可能会很多而不是$(body).find("not(id=vnn)& 阅读全文
posted @ 2013-04-16 10:52 远方的人 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 1. 使用unbind 方法 ,jquery 2.阻止冒泡的意思是,html DOM里面的事件,是从最初的点击对象然后逐层向父级Element传递的, 当span点击以后,如果将事件停止了,他自然就不会冒泡了。 $('p').addEvent("click",function(event){ event.stop(); }); function cancelBubble(evt) { // 阻止事件冒泡 if (window.event) { // Chrome,IE6,Opera window.event.cancelBub... 阅读全文
posted @ 2013-04-16 09:56 远方的人 阅读(182) 评论(0) 推荐(0) 编辑

2013年4月15日

摘要: js 定义集合变量 var a={a:方法,b,方法};var Util = {autoTjSqUpload : function(fileid) { $.ajaxFileUpload({ url : 'apply/memberupload!uploadshenqing', secureuri : false, fileElementId : fileid, dataType : 'json', success : function(data) { if (data.error) { $('#uploadbtn1').val("重... 阅读全文
posted @ 2013-04-15 17:37 远方的人 阅读(382) 评论(0) 推荐(0) 编辑

2013年4月12日

摘要: Undeployment Failure could not be redeployed because it could not be completely removed in the undeployment phase. the most common cuase of this problem is attempting to redeploy while the server is running,which has locked one or more files. to correct the deployment you will need to stop the serve 阅读全文
posted @ 2013-04-12 09:54 远方的人 阅读(422) 评论(0) 推荐(0) 编辑

2013年4月11日

摘要: <%@ page language="java" import="java.util.*,java.io.*" pageEncoding="UTF-8"%> 导入java.io.* String aa=request.getparameter("url");//直接打开pdfout.clear();out=pageContext.pushBody():response.setContentType("application/pdf");try{ String strpdfPath=n 阅读全文
posted @ 2013-04-11 09:41 远方的人 阅读(747) 评论(0) 推荐(0) 编辑

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) 编辑

导航