对话框/Tips

jquery-confirm - 功能强大jQuery对话框确认框插件

阿里云

jquery-confirm 是一款功能强大的 jQuery 对话框和确认框插件。它提供多种内置的主题效果,可以实现 ajax 远程加载内容,提供动画效果和丰富的配置参数等。它的特点还有:

可以使用键盘控制对话框

也想出现在这里?联系我们
创客主机

通过 ajax 加载对话框的内容

可以在指定时间之后自动关闭对话框

提供丰富的参数和回调函数

使用方法:

  1. $.confirm({
  2.     confirm: function(){
  3.             console.log('the user clicked confirm');
  4.     },
  5.     cancel: function(){
  6.             console.log('the user clicked cancel');
  7.     }
  8. });

全局默认参数:

  1. jconfirm.defaults = {
  2.     title: 'Hello',
  3.     content: 'Are you sure to continue?',
  4.     contentLoaded: function(){
  5.     },
  6.     icon: '',
  7.     confirmButton: 'Okay',
  8.     cancelButton: 'Close',
  9.     confirmButtonClass: 'btn-default',
  10.     cancelButtonClass: 'btn-default',
  11.     theme: 'white',
  12.     animation: 'zoom',
  13.     closeAnimation: 'scale',
  14.     animationSpeed: 500,
  15.     animationBounce: 1.2,
  16.     keyboardEnabled: false,
  17.     rtl: false,
  18.     confirmKeys: [13], // ENTER key
  19.     cancelKeys: [27], // ESC key
  20.     container: 'body',
  21.     confirm: function () {
  22.     },
  23.     cancel: function () {
  24.     },
  25.     backgroundDismiss: false,
  26.     autoClose: false,
  27.     closeIcon: null,
  28.     columnClass: 'col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1',
  29.     onOpen: function(){
  30.     },
  31.     onClose: function(){
  32.     },
  33.     onAction: function(){
  34.     }
  35. };

配置参数:

jquery-confirm - 功能强大 jQuery 对话框确认框插件

已有 900 人购买
查看演示升级 VIP立刻购买

演示地址 下载地址
收藏
(1)

发表回复

热销模板

Ashade - 作品展示摄影相册WordPress汉化主题
LensNews

本站承接 WordPress / PbootCMS / DedeCMS 等
系统建站、仿站、开发、定制等业务!