layer插件的常用实例

layer.msg(提示信息, {time:1000, icon:5, shift:6}, 回调方法);
layer.alert(提示信息, function(index){ // 回调方法 layer.close(index); }); 询问: layer.confirm("询问信息", {icon: 3, title:'提示'}, function(cindex){ layer.close(cindex); }, function(cindex){ layer.close(cindex); }); 加载 var loadingIndex = layer.msg('处理中', {icon: 16}); ... layer.close(loadingIndex); var index = layer.load(2, {time: 10*1000}); layer.close(index);

  

posted @ 2018-11-04 11:06  zhuzhipeng  阅读(1169)  评论(0编辑  收藏  举报