layer弹出标签层tab

引入文件:
<script type= " text/javascript " src= " layer/layer.min.js "></script>
<script type= " text/javascript " src= " jquery-1.11.js "></script>
<script type= " text/javascript " src= " layer/extend/layer.ext.js "></script>      @*引入扩展文件,可使用tab功能*@


<script type= " text/javascript ">
    $( ' #equipment ').on( ' click ', function () {
        layer.tab({
            data: [
        { title:  ' 标签一 ', content:  ' 标签中的内容 ' },
        { title:  ' 标签二 ', content:  ' hello world ' }
    ],
            area: [ ' 600px '' 300px '// 宽度,高度
        });
    });

</script>

<button id= " equipment " >标签</button>
相关文章
相关标签/搜索