var funName = functionName+"_"+fixID;typeof(funName)是等于"string" 的, 不是function直接 window.eval(funName)就行了如:function test()
{
alert("test");
}
window.eval("test()");

解决方案 »

  1.   

        var funName = "CheckStep"+currentStepIndex;
        if(eval("typeof("+funName+")=='function'"))
        {     
                return eval(funName+"()");
            }
            else
            {
                return true;
            }
      

  2.   

    是可以判断的:单一的test就是function,但eval则要加上括号()
    <script>
      function test(){ 
        alert("this is a test...");
      }
      alert(typeof(test));
      if(typeof(test)=="function"){
        alert("test is a function!!!");
        test();
      }
      eval(test());
    </script>