我正在使用资源控制器进行注释。 我有一个链接来删除我的刀片中的评论。是否可以使用laravel中的jquery重定向到资源控制器的销毁方法?
<a href="" ><span class="glyphicon glyphicon-trash delete"></span></a>
如果我点击它的jQuery对话弹出窗口。对话框的代码如下。
jQuery(document).ready(function($){
$('.edit-delete span.delete').click(function(e){
e.preventDefault();
$('<div id="dialog" class="pull-center"></div>').appendTo('body').html('<div"><h4>Are you sure you want to delete this comment?</h4></div>')
.dialog({
autoOpen: true,
modal : true,
title : 'Confirm',
buttons: {
"Yes" : function(){
$(this).dialog('close');
$(location).attr("href", " {{what do i put here?}} ");
},
"No" : function(){
$(this).dialog('close');
}
}
});
});
});
但毫无疑问,作为重定向我们需要使用删除method.How实现将无法工作?