layer 打开页面某个 DIV

        layer.open({
            type: 1,
            title:title,
            content: $("#attracting").html(),
            area: ['70%', '80%'],
            maxmin: true,
        });

content : $("#attracting").html()  

这个和官网有出入,切记要加 .html()

原文地址:https://www.cnblogs.com/xie-xiao-chao/p/8118793.html