jQuery的ajax jsonp的使用

阅读更多

 

 

 




    Untitled Page
     
     
    
 
 

 

<%@ WebHandler Language="C#" Class="ajax" %>

using System;
using System.Web;

public class ajax : IHttpHandler {
    
    public void ProcessRequest (HttpContext context) {
        context.Response.ContentType = "text/plain";
        string callbackFunName = context.Request["callbackparam"];
        context.Response.Write(callbackFunName + "([ { name:\"John\"} ] )");
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}

 

 

 

你可能感兴趣的:(jQuery的ajax,jsonp的使用)