日期:2014-05-16  浏览次数:20416 次

javascript判断某个函数是否存在
//instanceof & typeof
      function fnExist(fnName) {
		//return fnName in this && eval(fnName) instanceof Function;
		return fnName in this && typeof (eval(fnName)) == "function";
      }