ExtJS 中Ext.Ajax.request最好设为同步,即async: false,因为如果Ajax后面需要用到Ajax更新的数据的话,设置同步,后面才能用到最新的数据。

function GetPatientOrder() {
    Ext.Ajax.request({
        url: '/CommonAshx/Order.ashx',
        method: 'get',
        async: false,
        params: {
            gurd: "GetOrder",
            patientCardNo: Ext.getCmp("CardNo").value
        },
        success: function (response, options) {
            var responseJson = Ext.decode(response.responseText);
            docAdGrid.store.loadData(responseJson.rows);
        },
        failure: function () {
            Ext.Msg.alert("错误", "与后台联系的时候出了问题。");
        }
    });
}

 

相关文章:

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