javascript判断某个函数是否存在
//instanceof & typeof function fnExist(fnName) {//return fnName in this && eval(fnName) instanceof Function;return fnName in this && typeof (eval(fnName)) == "function"; }
发布时间: 2012-10-08 19:54:56 作者: rapoo
javascript判断某个函数是否存在
//instanceof & typeof function fnExist(fnName) {//return fnName in this && eval(fnName) instanceof Function;return fnName in this && typeof (eval(fnName)) == "function"; }