layer

作者: 褚家骏 | 来源:发表于2018-05-21 16:38 被阅读0次

Layer:
作为独立组件运用:直接通过script标签引入layer.js文件使用

属性:
type:基本层类型:0(信息框,默认);1(页面层);2(iframe层);3(加载层);4(tips层)
title:标题;
shadeClose:(true/false)点击弹层外关闭
shade:定义弹层外区域颜色
area:宽;高;默认为自适应
content:内容

layer.open({});原始核心方法
layer.confirm(content, options, yes, cancel);询问框

layer.msg(content, options, end) – 提示框
layer.alert(content, options, yes) – 普通信息框
layer.load(icon, options) – 加载层
layer.tips(content, follow, options) – tips层(type:4)

相关文章

网友评论

      本文标题:layer

      本文链接:https://www.haomeiwen.com/subject/hbcqjftx.html