按钮有时这么写
<input type="button" value="查询" name='query' onclick=" this.form.submit();" >
这里的this指向什么对象? 好像是window,但window好像没form属性

解决方案 »

  1.   

    这个this 表示 input你可测试 onclick="alert(this.value)";
      

  2.   

    表示标签自己 出现在标签a中,他就表示这个a,同理,出现在input中就表示他就是这个input。
      

  3.   

    如果表示input  怎么会有form属性?
      

  4.   

    js中 this总是指向调用函数的对象
    你这儿的代码是作为onclick成员方法执行,指向该成员的拥有者,即input标签