11.25
作者:互联网
<%# 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);
}
})
})
标签:function,success,res,11.25,response,data,id 来源: https://www.cnblogs.com/chenlu0317/p/15603709.html