From 9b4fc5da8e4d0984423d287411b22cc82b7cdd26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Sun, 19 Nov 2023 16:37:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20layer=20=E7=A4=BA=E4=BE=8B?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=9A=E4=BD=99=E7=A9=BA=E7=99=BD=E7=AC=A6?= =?UTF-8?q?=20(vscode)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/layer.html | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/examples/layer.html b/examples/layer.html index 3beadac0..dc19d44c 100644 --- a/examples/layer.html +++ b/examples/layer.html @@ -62,9 +62,9 @@ var runTest = function(run, $, layer){ var timer = setInterval(function(){ //location.reload(); }, 1000); - + layer.alert(123); - + $.ajax({ url: './all.html' ,beforeSend: function(){ @@ -91,12 +91,12 @@ layui.use(['layer', 'util'], function(layer, util){ var $ = layui.jquery; var util = layui.util; //return - + var index = layer.msg('Hello World'); //layer.close(index); //runTest(1, $, layer); - - + + // 触发事件 util.on('lay-on', { test: function(){ @@ -136,8 +136,8 @@ layui.use(['layer', 'util'], function(layer, util){ layer.open({ title:'自定义页面层', type: 1, - skin: 'layui-layer-border', - area: ['1000px', '580px'], + skin: 'layui-layer-border', + area: ['1000px', '580px'], content: $('#test11111'), maxmin: true, shade: false, @@ -179,13 +179,13 @@ layui.use(['layer', 'util'], function(layer, util){ layer.tab({ area: ['600px', '300px'], tab: [{ - title: 'TAB1', + title: 'TAB1', content: '内容1' }, { - title: 'TAB2', + title: 'TAB2', content: '内容2' }, { - title: 'TAB3', + title: 'TAB3', content: '内容3' }] }); @@ -230,17 +230,17 @@ layui.use(['layer', 'util'], function(layer, util){ }); } }); - + // 相册层 layer.photos({ photos: '#photos', // $('#photos') // toolbar: false, // footer: false }); - + //动态追加 $('#photos').append('
'); - + });