1:先引入需要的相關的檔案
2:準備一個新的頁面
3:小 demo
#addAsset{
width: 100px;
height: 30px;
line-height: 30px;
background: #009F95;
color: #FFFFFF;
text-align: center;
}
添加資産
//添加資産
$("#addAsset").on("click", function() {
layer.open({
type : 2,
title : '添加資産',
area : [ '500px', '500px' ],
fix : false, // �
content : '1.html',
end : function() {
dataTable.reloadTable();
}
});
});
實作效果:
原文作者:祈澈姑娘
标簽:function,界面,addAsset,layui,height,添加,彈框,30px
來源: https://blog.csdn.net/weixin_44763569/article/details/89679975