1.准备工作

拷贝相关文件都项目根目录下

页面中引入文件

<link href="./skins/default.css" rel="stylesheet" />
<script src="./artDialog.min.js"></script>

2.使用方法及主要参数

        function show1() {
       art.dialog({
        height: 460,
      width:600,
        title:'标题',
      content:'信息内容',
        fixed:true,
      lock:true————————————(默认值: false) 开启锁屏遮罩。
      time:2000———————————超过指定时间将自动关闭单位毫秒


       });
        }

3.插件部分

需要先导入<script src="./artDialog.plugins.min.js"></script>

shake()

art.dialog({
    id: 'shake-demo',
    title: '登录',
    content: '帐号:<input type="text" value="guest" /><br />'
        + '密码:<input >,
    lock: true,
    fixed: true,
    ok: function () {
        var pw = document.getElementById('login-pw');
        pw.select();
    	pw.focus();
    	this.shake();
        return false;
    },
    okValue: '登录',
    cancel: function () {}
});

 
                    
            
                

相关文章:

  • 2022-01-20
  • 2021-07-26
  • 2021-08-24
  • 2021-08-31
  • 2021-11-12
  • 2022-12-23
  • 2021-09-21
  • 2021-12-27
猜你喜欢
  • 2022-02-09
  • 2021-11-09
  • 2021-06-07
  • 2021-06-26
  • 2021-11-24
  • 2021-11-30
  • 2021-07-17
相关资源
相似解决方案