📅  最后修改于: 2022-03-11 15:02:13.942000             🧑  作者: Mango
$(function() {
$('.confirm').click(function(e) {
e.preventDefault();
if (window.confirm("Are you sure?")) {
location.href = this.href;
}
});
});