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('提示','新建目录失败!');
}
}
});
本文介绍如何利用Ext.Ajax请求实现文件夹新建功能。具体实现方式为发送POST请求到指定URL,携带参数包括目标路径及文件夹名称,并通过回调函数处理服务器返回的数据。
710

被折叠的 条评论
为什么被折叠?



