当前位置: 代码迷 >> JavaScript >> extjs中Ajax中的request应用
  详细解决方案

extjs中Ajax中的request应用

热度:163   发布时间:2012-10-29 10:03:53.0
extjs中Ajax中的request使用
Ext.Ajax.request({
	url : contextpath+'/fileManage.do?method=newFolder',
	params : {filePath : node.id , folderName : w.getForm().getForm().getValues().name},
	callback : function(options ,success ,response){
		if(success){
			var r = Ext.decode(response.responseText);
			if(r){
				if(r.type == 0){
				
				}else if(r.type == 1){
				
				}else if(r.type == 2){
					
				} 
			}else{
				Ext.Msg.alert('提示','新建目录失败!');
			}
		}else{
			Ext.Msg.alert('提示','新建目录失败!');
		}
	}
});

?

  相关解决方案