流浪鱼 发表于 2013-1-29 11:38:59

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('提示','新建目录失败!');}}}); 
页: [1]
查看完整版本: extjs中Ajax中的request使用