标题:Javascript: 如何判断是否存在某个函数或方法 出处:Felix021 时间:Tue, 08 Apr 2008 16:18:17 +0000 作者:felix021 地址:https://www.felix021.com/blog/read.php?811 内容: from http://topic.csdn.net/t/20060905/14/4999773.html function ttt() {alert(1);} if (typeof(ttt) == "function") alert("yes"); else alert("no"); Generated by Bo-blog 2.1.0