日期:2014-05-18 浏览次数:20568 次
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
string data = "{name:\"jeff\"}";
context.Response.Write(data);
}
------解决方案--------------------
我日,搞错了。还以为你问的什么了。
context.Response.ContentType = "text/plain";
string data = "{name:\"jeff\"}";
context.Response.Write(data);
你自己断点调试下,进来后看看Write的是什么。
------解决方案--------------------
string date = "{\"date:[{\"name\":\"jeff\"}]}";
------解决方案--------------------
应该是$.getJSON()对json数据有检查的 。
你换成$.post()过去就能拿到数据 .