$(this).attr("data-id") // will return the string "123"or .data() (if you use newer jQuery >= 1.4.3)$(this).data("id") // will return the number 123注:1.两种方法 ①使用attr方法获得data-*的值 $(this).attr('data-id');② $(this).data("…
C# 后台 (JSONHandler.ashx) <%@ WebHandler Language="C#" Class="JSONHandler" %> using System; using System.Web; using System.Web.Script.Serialization; public class JSONHandler : IHttpHandler { public void ProcessRequest (HttpContext…