引入文件:
<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" >标签</text>