artDialog 定时关闭接口
Hope2012 opened this issue · comments
dawn commented
用了artDialog很长时间 更新了这么多版本 为什么没有定时关闭的接口方法 本人JS功底有限 不会拓展
leo commented
都有close remove接口方法了。定时关闭?自己搞个定时器就好了吧。
伪代码:
var _config = {
onshow: function(){
var that = this ;
setTimeout( function(){
that.close() ;
} , 3000 );
}
} ; // 配置参数
var _dialog = dialog( _config ) ;