摘要: //判断父页是否存在某个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 东师理想--周枫 阅读(443) 评论(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 东师理想--周枫 阅读(448) 评论(0) 推荐(0) 编辑