layer.open({
type:1,
title:"添加机器",
maxmin:true,
area:["100%","100%"],
btn:["确认添加"],
content: $("#showalladdableavms").html(),
success:function(layero) {var btn = layero.find('.layui-layer-btn');
btn.css({'position':'relative','top':"-93%","text-align":"left","left":"8%"});
},
btn1:function(index, layero){//console.log(layero, index);
var res = getoperavms('demo');
console.dir(res)
}
});functionfilldata(table,id,url){
table.render({
elem: id,
height:"560",url:url//数据接口
,method: 'POST',cellMinWidth:80 //全局定义常规单元格的最小宽度,layui 2.2.1 新增
,page:true/*{ //支持传入 laypage 组件的所有参数(某些参数除外,如:jump/elem) -