我想将功能添加到我的成功按钮,或者类似于动作:在我的模态下使用bootstrap我该怎么办?
$('#add_item').on('click',function(){
$('#myModal').modal({
backdrop: 'static',
keyboard: false,
});
});
答案 0 :(得分:0)
尝试一下这些坏男孩:
public class HomeController : Controller
{
private readonly IMediator _mediator;
public HomeController(IMediator mediator)
{
_mediator = mediator;
}
public IActionResult Index()
{
var pong = _mediator.Send(new Ping {Value = "Ping"});
return View(pong);
}
}