美文网首页
BootStarp 常用API

BootStarp 常用API

作者: Vincent_Jiang | 来源:发表于2017-05-05 23:21 被阅读146次

模态框

事件 描述 实例
options 把内容作为模态框激活。接受一个可选的选项对象。 $("#modal").modal({keyboard: false});
toggle 手动切换模态框。 $("#modal").modal("toggle");
show 手动打开模态框。 $("#modal").modal("show");
hide 手动隐藏模态框。 $("#modal").modal("hide");
show.bs.modal 在调用 show 方法后触发。 $('#modal').on("show.bs.modal", function() {});
shown.bs.modal 当模态框对用户可见时触发(将等待 CSS 过渡效果完成)。 $('#modal').on("shown.bs.modal", function() {});
hide.bs.modal 当调用 hide 实例方法时触发。 $('#modal').on("hide.bs.modal", function() {});
hidden.bs.modal 当模态框完全对用户隐藏时触发。 $('#modal').on("hidden.bs.modal", function() {});

相关文章

网友评论

      本文标题:BootStarp 常用API

      本文链接:https://www.haomeiwen.com/subject/dbtetxtx.html