引入文件:
<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>
<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>