Jquery getJSON方法详细分析
发布时间:2014-06-07 编辑:jiaochengji.com
本篇文章主要是对Jquery getJSON方法进行了详细的分析介绍,需要的朋友可以过来参考下,希望对大家有所帮助
准备工作
·Customer类
复制代码 代码如下:
public class Customer
{
public int Unid { get; set; }
public string CustomerName { get; set; }
public string Memo { get; set; }
public string Other { get; set; }
}
·服务端处理(Json_1.ashx)
复制代码 代码如下:
Customer customer = new Customer
{ Unid=1,CustomerName="宋江",Memo="天魁星",Other="黑三郎"};
string strJson = Newtonsoft.Json.JsonConvert.SerializeObject(customer);
context.Response.Write(strJson);
您可能感兴趣的文章:
Jquery getJSON方法详细分析
$.getJSON在IE下失效的原因分析及解决方法
jQuery JSONP跨域需要怎样实现
Jquery中getJSON在asp.net中的使用说明
Jquery中$.get(),$.post(),$.ajax(),$.getJSON()的用法总结
Jquery跨域获得Json时invalid label错误的解决办法
jQuery的3种请求方式$.post,$.get,$.getJSON
jQuery解析JSON数据实例详解
jQuery源码分析系列
jQuery怎么解析Json字符串(Json格式/Json对象)
[关闭]