首页
mac
it
登录
6mi
u
盘
搜
搜 索
it
PbootCMS批量导入
PbootCMS批量导入
mac
2026-06-14
17
layer
.
load
(
)
;
//上传loading } ,done: function(res){ var item = this.item; var des=$(item).data('des'); layer.closeAll('loading'); //关闭loading if(res.code==1){ // $('#'+des).val(res.data[0]); var host = window.location.host; console.log(host); // $.post("http://"+host+"/core/省略.php",{ url:res.data[0]},function(data,status){ // $.post("http://"+host+"/index.php/index/excel_upload",{ url:res.data[0]},function(data,status){ //$.post("http://"+host+"/ajax.php/index/excel_upload",{ url:res.data[0]},function(data,status){ $.post("http://"+host+"/api.php/index/excel_upload",{ url:res.data[0]},function(data,status){ data = JSON.parse(data); console.log(data); console.log(status); if(data.code==1){ //$('#'+des).val(data); layer.msg('上传成功,3秒后刷新',function(){ window.location.href=window.location.href; }); //alert("Data: " + data + "nStatus: " + status); }else{ layer.msg('上传失败!'+data.data); } }); }else{ layer.msg('上传失败:'+res.data); } } ,error: function(){ layer.closeAll('loading'); //关闭loading layer.msg('上传发生错误!'); } });
代码为部分代码,完整代码请进企鹅群
177156
获取
转载请注明原文地址: https://mac.8miu.com/read-514854.html
最新回复
(
0
)