利用jquery跨域访问一般处理程序
$.getJSON('http://www.taik.com?Action=getservice&r=' + Math.random() + '&jsoncallback=?', function (data) { //回调函数,处理返回的数据 jsoncallback=? 必须有
});
bool success = true; string result = ""; string msg = ""; result = BindServiceInfo(); context.Response.ContentType = "text/html; charset=utf-8"; string callback = BLL.Util.GetCurrentRequestQueryStr("jsoncallback"); //jsoncallback参数回传必须有
if (!string.IsNullOrEmpty(callback)) { result = callback + "(" + result + ")"; } context.Response.Write(result);