11.25(eleven point two five)

<%# Eval(“Id”) %> 前端数据绑定.

Ajax方法: $(“.del”).click(function () { var id = $(this).attr(“data_id”); //获取值$.ajax({ type: “post/get”,//方法 url: “一般处理程序”//地址 data: { cid: id }, //参数 success: function (res) { //success请求成功,响应回调的类型 alert(res); }, error: function (response) { console.log(response); } }) })

————————

<%# Eval(“Id”) %> Front end data binding

Ajax method: $(“. Del”). Click (function() {var id = $(this). Attr (“data_id”); / / get the value $. Ajax ({type: “post / get”, / / method URL: “general handler” / / address data: {CID: ID}, / / parameter success: function (RES) {/ / success request is successful, and the type of response callback is alert (RES);}, error: function (response) {console.log (response);}})})