日期:2014-05-16  浏览次数:20370 次

ExtJs 相关

1.Ext.Ajax.request

Ext.Ajax.request({
    url: "url.action",
    params: {},
    success: function(response){
       var result = eval('(' + response.responseText + ')');
       if(result.success){
    	   alert("success")
       }else{
    	   alert("fail");
       }
    }
});

var task = new Ext.util.DelayedTask(function(){
	btn.setDisabled(false);
});
task.delay(10000);

?

2.Ext延迟执行任务

var task = new Ext.util.DelayedTask(function(){
	btn.setDisabled(false);
});
task.delay(10000);

?

3.Form.load

form.getForm().load({
	url:'url.action',
	method:'post',
	params:{
		id:id
	},
	success:function(form,action){
		
	},
	failure:function(form,action){
		
	}
});

?4.Form.submit

form.submit({
	success : function(form, action) {

	},
	failure : function(form, action) {
	}
});

?

5.查询Store可以指定查询第几页

?

?
Ext.data.Store
loadPage( Number page, Object options )
Loads a given 'page' of data by setting the start and limit values appropriately. Internally this just causes a normal load operation, passing in calculated 'start' and 'limit' params

Parameters

  • page : Number

    The number of the page to load

  • options : Object

    See options for load

?

//如回到首页
store.loadPage(1);

?

?