setTimeout("man_menu_height()",1000); 
setTimeout(man_menu_height,1000); 
setTimeout(function(){man_menu_height()},1000); 

解决方案 »

  1.   

    setTimeout("man_menu_height()",1000); 要加引号的
      

  2.   

    setTimeout("man_menu_height()",1000); 要加引号的
      

  3.   

    要加引号的,不加引号就没有小括号
    因为javascript脚本语法比较宽松
      

  4.   

    setTimeout(man_menu_height(),1000)
    这样的话 先执行了 函数 然后把 函数返回值 放到了 settimeout里面
      

  5.   

    man_menu_height()是执行函数man_menu_height()man_menu_height而是对这个函数的引用两个完全不一样setTimeout(code,millisec);参数 描述 
    code 必需。要调用的函数后要执行的 JavaScript 代码串。 
    millisec 必需。在执行代码前需等待的毫秒数。 所以正规写法应该这样写:function man_menu_height() {
      document.getElementById("pro_man_menu").style.height = document.getElementById("pro_man_action").scrollHeight-20+"px"

    setTimeout("man_menu_height()",1000);