话不多说,首先前端js请求:
$.getJSON("http://kms.re.intra.citic.com/ekp/kms/multidoc/kms_multidoc_knowledge/kmsMultidocKnowledge.do?method=getPersonalDocCount&jsoncallback=?",function(data){ $("#knowCount").text(data.myDocCount); if(parseFloat(data.myDocCount)==0){ $("#knowCount").addClass("disable"); } })
后台传送前台json前需要如下:
string cb = context.Reque; context.Response.Write(cb + "(" + json + ")");原文链接:https://www.f2er.com/ajax/162738.html