$('body').on('click','.add_my_content',function (e) {
console.log($(e.target).attr('data-type'));
});
需要给被点击的元素加上css属性: cursor:pointer,
$('body').on('click','.add_my_content',function (e) {
console.log($(e.target).attr('data-type'));
});
需要给被点击的元素加上css属性: cursor:pointer,