🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

A simple, lightweight, mobile-optimized jQuery popup box plugin which helps you create iOS-style, responsive alert and/or confirmation dialog boxes with ease.

alert confirm Dialog

Documentation

dialog组件,包含alertconfirm两种样式,下面是它的使用方法:

在html文件中引入对应的css和js

<link rel="stylesheet" href="widget/dialog/dialog.css">  <script src="widget/dialog/dialog.js"></script> 

js文件中调用

lnv.alert({     title: '提示',     content: 'content',     alertBtnText: '确定',     alertHandler: function(){          // 点击确定按钮的回调      } }) 

效果如下:

alert

js文件中调用

lnv.confirm({     title: '提示',     content: 'content',     confirmBtnText: '确定选择',     confirmHandler: function(){          // 点击确定按钮的回调      },     cancelBtnText: '取消',     cancelHandler: function(){          // 点击取消按钮的回调      } }) 

效果如下:

confirm


You May Also Like