js:
        jQuery(document).ready(function(){
                $.ajax({
                    type : 
"GET",
                    url : 
"http://service.test.com/t1.ashx?callback=?",
                    dataType : 
"jsonp",
                   jsonp: 
"callback",
                    success : 
function(json){
                        $(
'#feeds').html(json.msg);
                        
return true;
                    }
                });
            });

    <div > 1         public void ProcessRequest(HttpContext context)
2         {
3             context.Response.ContentType = "text/html";
4             string callback = context.Request.Params["callback"];
5             context.Response.Write(callback + "({\"msg\":\"jquery test message!\"})");
6         }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-23
  • 2021-06-26
  • 2021-10-16
  • 2022-12-23
  • 2021-11-22
  • 2022-12-23
猜你喜欢
  • 2022-02-19
  • 2021-09-05
  • 2021-07-20
  • 2021-09-29
  • 2022-12-23
  • 2022-01-05
相关资源
相似解决方案