如何在成功按钮中添加功能?

时间:2016-09-17 22:35:38

标签: jquery

我想将功能添加到我的成功按钮,或者类似于动作:在我的模态下使用bootstrap我该怎么办?

$('#add_item').on('click',function(){
     $('#myModal').modal({
        backdrop: 'static', 
        keyboard: false,
     });
});

1 个答案:

答案 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);
  }
}