objField.focus();
这样就好了带个参数不报错就谢天谢地了

解决方案 »

  1.   

    objField.focus();
    这样就好了带个参数不报错就谢天谢地了
      

  2.   

    第一次听说focus(),代参数,还有javascript应该挺严谨吧,这个是意外吧。
      

  3.   

    focus Method--------------------------------------------------------------------------------Causes a control to receive the focus, and executes the code specified by the onfocus event. Syntaxobject.focus()Return ValueNo return value. ResThis method fires the onfocus event.As of Microsoft® Internet Explorer 5, elements that expose the focus method must have the TABINDEX attribute set.Elements cannot receive focus until the document finishes loading.看这个就很清楚 , focus本身是不带参数的,也不返回任何值的 。 。 。 
    你所看见的带了参数而没有报错只能是javascript本身的严谨度不够
    实际上是没有任何用处的 。