52,782
社区成员
发帖
与我相关
我的任务
分享
// $("#imgSpan")是个进度条gif图片
// url返回数据大概用时4到5秒
function syncToGroup(){
$("#imgSpan").show();
$.ajaxSetup({async:false});
$.get("${ctx}/group!callProcedure.action",function(result){
if(result == "0"){
alert("同步完成");
}else{
alert("同步异常:"+result);
}
});
$.ajaxSetup({async:true});
$("#imgSpan").hide();
}
function syncToGroup(){
$("#imgSpan").show();
$.get("${ctx}/lidm/view_indresult_org!callProcedure.action",function(result){
if(result == "0"){
$("#imgSpan").hide();
alert("同步完成");
}else{
$("#imgSpan").hide();
alert("同步异常:"+result);
}
});
}

$.ajax({
url: "${ctx}/lidm/view_indresult_org!callProcedure.action",
async: false,
type: "GET",
beforeSend: function(){
$("#img_loading").show();
},
success: function(result){
if(result == "0"){
alert("同步完成");
}else{
alert("同步异常:"+result);
}
},
complete: function(){
$("#img_loading").hide();
}
});