参考:https://blog.csdn.net/qq_31648761/article/details/72673724
<div class="layui-input-block" id="shehsi">
<input type="checkbox" name="facilities" data_id="1" value="true" title="投影仪">
<input type="checkbox" name="facilities" data_id="2" value="true" title="茶水">
<input type="checkbox" name="facilities" data_id="3" value="true" title="麦克风">
</div>
$('input:checkbox[name=facilities]:checked').each(function(k){
alert($(this).attr("data_id"));
})