08 2013 档案

摘要:错误原因:上传文件过大,需要改nginx配置文件打开nginx主配置文件nginx.conf,找到http{}段,添加client_max_body_size 20m; 阅读全文
posted @ 2013-08-29 15:35 东师理想--周枫 阅读(203) 评论(0) 推荐(0)
摘要:/** * java发送带附件的邮件 * 周枫 * 2013.8.10 */package com.dsideal.Util;import javax.mail.*;import javax.mail.internet.*;import java.util.*;import javax.activa... 阅读全文
posted @ 2013-08-10 09:47 东师理想--周枫 阅读(436) 评论(0) 推荐(0)
摘要://判断父页是否存在某个javascript函数 function fnExist(fnName) { //return fnName in this && eval(fnName) instanceof Function; return fnName in this && typeof (eval(fnName)) == "function"; } 返回结果为 true false//重载thickbox方法,实现刷新页面 function tb_remove() { if(fnExist("sele... 阅读全文
posted @ 2013-08-08 14:51 东师理想--周枫 阅读(464) 评论(0) 推荐(0)
摘要:1. 首先注意需要调用thickbox的js/css/thickbox.css">2. 关闭子页的时候,主要是调用了thickbox.js的tb_remove()函数注:不能修改thickbox.js中的tb_remove()函数,因为那个是个基类,如果发生单独的业务,需要在自己的jsp中重载该方法,也就是说,在父页的jsp中重写tb_remove()函数//重载thickbox方法,实现刷新页面 function tb_remove() { $("#TB_imageOff").unbind("click"); $("#TB_c 阅读全文
posted @ 2013-08-08 14:48 东师理想--周枫 阅读(464) 评论(0) 推荐(0)