SemanticUI模式不/ onShow / onDeny / on批准每个事件不触发

时间:2018-08-12 16:27:05

标签: node.js pug semantic-ui

每个事件都不以我的方式触发。 模态显示时应显示日志,并且当我按“拒绝”和“批准”按钮但它不显示任何日志,而仅关闭模态窗口时,也应显示日志。

            button.mini.ui.red.basic.button#delete(type="submit")
              |Delete
            .ui.mini.modal.myModal
              i.close.icon
              .header
                | Delete Post
              .content
                | Are you sure?   
              .actions
                .ui.red.deny.button
                  | Nope!
                .ui.positive.right.labeled.icon.button
                  | Yep!
                  i.checkmark.icon  

脚本

$('#delete').click(function(){

  $('.ui.modal.myModal').modal({
    onShow: function(){console.log('onShow');},
    onVisible: function(){console.log('onVisible');},
    onDeny: function(){console.log('onDeny');},
    onApprove: function(){console.log('onApprove');}
  }).modal('show');

0 个答案:

没有答案