js怎么判断一个变量是不是函数

if (typeof FunName === "function") { alert("这是一个函数"); } else { alert("这不是一个函数"); }
相关文章
相关标签/搜索