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本身的严谨度不够 实际上是没有任何用处的 。
这样就好了带个参数不报错就谢天谢地了
你所看见的带了参数而没有报错只能是javascript本身的严谨度不够
实际上是没有任何用处的 。