一、客户端

      function Key(field,e)

       {

          if (e.getKey() == Ext.EventObject.ENTER) 

            Coolite.AjaxMethods.BtnAdd_Click(null, null); 

       } 

二、服务器端

               <ext:TextField ID="Txtbeizhu" runat="server" Width="280px">

                   <Listeners>

                      <SpecialKey Fn="tt" />

                   </Listeners>

                   <AjaxEvents>

                      <SpecialKey OnEvent="Key" />

                   </AjaxEvents>

                </ext:TextField> 

相关文章:

  • 2022-12-23
  • 2021-10-16
  • 2022-01-08
  • 2021-07-07
  • 2022-12-23
  • 2022-01-26
  • 2022-12-23
  • 2021-11-11
猜你喜欢
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
  • 2022-03-02
相关资源
相似解决方案