jquery-confirm 介绍
jquery-confirm是一款功能强大的jQuery对话框和确认框插件。它提供多种内置的主题效果,可以实现ajax远程加载内容,提供动画效果和丰富的配置参数等。
特点
一个多功能的插件,用于警报,确认和对话,具有超强功能。
聆听键盘琴键
通过Ajax直接加载内容
在指定时间后自动关闭对话框
防止对话框在后台单击关闭
回调函数,还有更多
用法
$.confirm({
title: 'What is up?',
content: 'Here goes a little content',
type: 'green',
buttons: {
ok: {
text: "ok!",
btnClass: 'btn-primary',
keys: ['enter'],
action: function(){
console.log('the user clicked confirm');
}
},
cancel: function(){
console.log('the user clicked cancel');
}
}
});
网站地址:http://craftpip.github.io/jquery-confirm/
GitHub:https://github.com/craftpip/jquery-confirm
网站描述:功能强大的jQuery对话框和确认框插件
jquery-confirm
官方网站:http://craftpip.github.io/jquery-confirm/
小编说
以上是编程之家为你收集整理的jquery-confirm全部内容。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。