cczhoufeng
//判断父页是否存在某个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("selectDepartment") == true) {
            selectDepartment();
        }
        
    }

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-06-21
  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-14
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2021-07-11
相关资源
相似解决方案