ext.net在js中调用后台方法

第一种方法:也是大多人用的方法:

 1.资源管理器中起来别名:DirectMethodNamespace="X"

  <ext:ResourceManager ID="ResourceManager1" runat="server" DirectMethodNamespace="X"/>    

 2.在js方法中这样调用

   X.方法名();

第二种方法:我个人推荐的

  在js中直接调用后台方法不需要走别名

   App.direct.方法名();

千万要记住在后台方法一定要标记为: [DirectMethod]

原文地址:https://www.cnblogs.com/spring_wang/p/3105633.html