【文件属性】:
文件名称:bootstrap-show-modal:Bootstrap 4 jQuery插件包装器,用于在JavaScript中动态创建模式
文件大小:10KB
文件格式:ZIP
更新时间:2021-01-30 00:41:14
bootstrap jquery jquery-plugin ui modal
引导显示模式
jQuery插件,可在纯JavaScript中创建bootstrap 4模态。
安装
npm install bootstrap-show-modal
或者只是下载此存储库并包含src/bootstrap-show-modal.js 。
用法
简单模态
$ . showModal ( { title : "Hello World!" , body : "A very simple modal dialog without buttons." } )
警报对话框
$ . showAlert ( { title : "Hi" , body : "Please press ok, if you like or dislike cookies." } )
确认对话框
$ . showConfirm ( {
title : "Please confirm" , body : "Do you like cats?" , textTrue : "Yes" , textFalse : "No" ,
onSubmit : function ( result ) { //
【文件预览】:
bootstrap-show-modal-master
----package.json(915B)
----test()
--------test.js(561B)
--------index.html(807B)
----index.html(8KB)
----LICENSE(1KB)
----package-lock.json(3KB)
----src()
--------bootstrap-show-modal.js(5KB)
----.gitignore(20B)
----README.md(3KB)
----.gitattributes(85B)