版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/haibo0668/article/details/82823962
// 确定删除吗?
$(document).on("click",".cart_cont .del",function(){
var cart_id = [];
var _del = $(this);
cart_id.push($(this).attr("data-id"));
console.log(_ind);
layer.confirm("确定删除吗?",function(_ind){
// $.ajax({
// type:'post',
// url:'../../addComment',
// data:{pid:pid,action:'collect'},
// success:function(data){
// //console.log(data)
// if(data.code == 1){
//
// _del.parent().remove();
// total();
// layer.close(_ind);
//
// layer.msg(data.msg);
//
// }else{
// layer.msg(data.msg);
// }
//
// },
// error:function(){
// layer.msg(data.msg);
// }
// })
});
});
$(document).on("click",".cart_cont .del",function(){