-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtestIframe.html
More file actions
51 lines (45 loc) · 1.24 KB
/
testIframe.html
File metadata and controls
51 lines (45 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>layui在线调试</title>
<link rel="stylesheet" href="layui/src/css/layui.css" media="all">
<style>
</style>
</head>
<body>
<div class="layui-form select_option_in_layer" style="padding: 20px;">
<select lay-filter="city">
<option value="1">北京</option>
<option value="2">上海</option>
<option value="3">广州</option>
<option value="4">深圳</option>
</select>
</div>
<button class="layui-btn" id="btn1">点击继续弹出</button>
<script src="layui/src/layui.js"></script>
<script>
layui.config({base: 'test/js/'})
.use(['testTablePlug'], function () {
var $ = layui.$;
var form = layui.form;
$('#btn1').click(function () {
layer.open({
type: 2,
title: '测试下拉效果iframe',
shade: false,
area: ['200px', '100px'],
content: 'testIframe.html',
success: function (layero, index) {
}
});
})
form.on('select(city)', function (data) {
console.log('选择了', data);
})
});
</script>
</body>
</html>