点击
<span onclick="msg(<?=$id;?>)" class="layui-text">
弹出层
<div style="display:none" id='div<?=$id;?>'>
JS代码
function msg(wrapperId) {
var $ = layui.$;
var $wrapper = $('#div' +wrapperId+'');
layui.use('layer', function(){
var layer = layui.layer;
layer.ready(function(){
layer.open({
type: 1,
title: '详细情况',
area: ["500px", "250px"],
content: $wrapper
});
});
});
}