代码如下 | 复制代码 |
<!DOCTYPE html> <html> <head> <script type="text/javascript" src="http://x6.com/js/jquery.min.js"></script> <script type="text/javascript" src="http://x6.com/js/jquery.artDialog.js?skin=default"></script> </head> <body> <script> //弹出层, //art.dialog('简单愉悦的接口,强大的表现力,优雅的内部实现'); //弹出层弹出之后,callback //art.dialog("有callback的",function(){alert('callback')}); //art.dialog("有callback的",function(){alert('callback')}).title("标题"); //两秒后自动关闭 //art.dialog("两秒钟之后自己关闭").time(2); //锁屏 //art.dialog("锁屏了哦!").lock(); //锁屏两秒钟之后关闭 //art.dialog("锁屏之后,两秒钟关闭").lock().time(2); /*var dialog = art.dialog({ title:"标题", content:"这里内容", //icon:"succeed", lock:true, ok:function(){ //关闭之前调用 alert("callback") } })*/ //带图标 |
时间: 2024-10-25 10:29:18