2013年7月13日

jquery + json 操作

摘要: jquery 读取集合对象多是要与json进行解析操作的,以下自己经过多方资料查找,终于有一套自己的方式组合.1.首先创建web services或一般处理程序,用于显示获取Datatable对象product.asmx [WebMethod]-- BigClassName 传递的参数 public string Test(string BigClassName) { System.Text.StringBuilder strwhere = new System.Text.StringBuilder(); strwhere.Append(" and BigClassN... 阅读全文

posted @ 2013-07-13 19:30 一江春水 阅读(1358) 评论(0) 推荐(1)

JQuery操作JSON数据

摘要: 1.在我们的项目中jquery的js文件。2.新建一个htm文件,命名为dome.htm吧。代码如下:(head区的js代码就是实现的全部代码,有详细注释)复制代码代码如下:jquery获取json数据演示页面3.我们再建一个一般应用程序(jsonData.ashx)代码如下:复制代码代码如下:using System;using System.Web;public class jsonData : IHttpHandler {public void ProcessRequest (HttpContext context) {context.Response.ContentType = &qu 阅读全文

posted @ 2013-07-13 19:10 一江春水 阅读(8607) 评论(0) 推荐(0)

导航