btn:['打印'], yes:function (index, layero) { var body = layer.getChildFrame('body', index); var iframeWin = window[layero.find('iframe')[0]['name']]; iframeWin.print(); }