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>
相關文章
相關標籤/搜索