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