备忘, 需要先引入对应的js和css文件

<bottom class="layui-btn" onclick="test1()">弹出层</bottom>
	<script type="text/javascript">
		function test1(){
			layui.use('layer', function(){
		    	var layer = layui.layer;
				layer.open({
				  title: '添加FTP服务器',
				  type: 2,
				  area: ["1000px","500px"],
				  content: 'http://www.baidu.com'
				});
			  });
		}
	</script>

效果
layui按钮监听事件-弹出层

相关文章:

  • 2022-01-17
  • 2022-12-23
  • 2022-01-29
  • 2021-10-19
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
猜你喜欢
  • 2022-12-23
  • 2021-07-07
  • 2022-12-23
  • 2022-03-09
  • 2021-08-08
  • 2021-11-17
相关资源
相似解决方案