总的来说,我是 jQuery 和 web 开发的超级菜鸟,需要一些帮助来实现 apprise 警报系统。我意识到“验证”函数中的函数无法识别“this”选择器,我应该实现 $.proxy 以从当前范围之外获取“this”选择器。但无论我尝试什么,我都无法让它发挥作用
$('.closebtn').click(function(){
apprise('<center>Are you sure you want to delete this section?<br>This action can not be undone!</center>',{'verify':true}, function(r){
if(r){
$(this).remove();
}
})
})
提前感谢您的帮助