代码:

            <script type="text/javascript">
            //判断是否为函数
            try {
                if(typeof FunName === "function") { //是函数    其中 FunName 为函数名称
                    alert("is function");
                } else { //不是函数
                    alert("not is function");

                }
            } catch(e) {}
            
        </script>

 

相关文章:

  • 2022-02-02
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-26
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-02
  • 2021-08-16
相关资源
相似解决方案