layer 片段
<script > //打开新页面并获取数据 layer.open({ type: 2, title: '筛选', //不显示标题栏, closeBtn: false, area:['100%', '100%'], shade: 0.8, id: 'LAY_layuipro', //设定一个id,防止重复弹出, resize: false, btn: ['确认', '取消'], btnAlign: 'c', moveType: 1, //拖拽模式,0或者1, content: url, success:function(layero,index){ //打开 tmpIndex = index; }, yes: function(index,data){ //确认 var addressComponentDom = layer.getChildFrame('#day_start', tmpIndex).val(); alert(addressComponentDom); //最后关闭弹出层 layer.close(index); } }) </script>