//获取选中的checkbox的值 var mId = ""; var e =iframeWindow.$(":checkbox"); e.each(function () { if($(this).next().hasClass("layui-form-checked")){ mId+=$(this).val()+","; }; }) mId = mId.substring(0,mId.length-1);