防溢乳垫使用图解:ExtJs Ajax

来源:百度文库 编辑:九乡新闻网 时间:2024/04/26 07:36:54
Ext.onReady(function() {
  var westRegion = new Ext.Panel({
  renderTo: "mm",
  collapsible: true,
  border: false,
  height: 300,
  width: 200,
  split: true,
  scripts:true,
  layout: "accordion",
  layoutConfig: { animate: true },
  title: "XXX工作平台",
  items: []
  });
  Ext.Ajax.request({
  url: "Data/AjaxTest.ashx",
  method: "POST",
  success: function(response, options) {
  var data = Ext.util.JSON.decode(response.responseText);
  westRegion.add(data);
  westRegion.doLayout();
  },
  failure: function(response, options) {
  alert("异步请求失败!");
  }
  });
  });