摘要: window.onload = function(){ try{ if(test && typeof(test) == "function"){ test(); } }catch(e){ alert("方法不存在"); }}function test(){ alert("我是test()... 阅读全文
posted @ 2015-03-05 09:51 雪卜 阅读(4041) 评论(0) 推荐(0)
摘要: //是否存在指定函数 function isExitsFunction(funcName) { try { if (typeof(eval(funcName)) == "function") { return true; } } catc... 阅读全文
posted @ 2015-03-05 09:48 雪卜 阅读(2385) 评论(0) 推荐(0)