function t()
{
if(typeof(s)=="function")
{
s();
}
}

解决方案 »

  1.   

    function t()
    try
    {
    s()
    }
    catch(e)
    {//可不写内容}
    }
      

  2.   

    <script>
    if(window.xx)
    alert("存在")
    else
    alert("不存在")if(window.x)
    alert("存在")
    else
    alert("不存在")function x()
    {}
    </script>
      

  3.   

    不要用try catch,要用typeof判断,try catch效率低下。
      

  4.   

    runmin(我的爱是折下自己的翅膀,送给你飞翔。)  不好意思,已经结了,才看见你!
    下次给你