IE版本小于9,为了不影响您的浏览效果,请升级IE版本! x

贯彻习近平生态文明思想 联防联控 京津冀三地筑起绿色生态屏障

来源:狗万pc端 发布时间:2021-06-29
"; var footstr = ""; //执行隐藏打印区域不需要打印的内容 //document.getElementById("otherpho").style.display="none"; var printData = document.getElementById("printdivaa").innerHTML; //获得 div 里的所有 html 数据 var wind = window.open("", "newwin", "toolbar=no,scrollbars=yes,menubar=no"); wind.document.body.innerHTML = headstr + printData + footstr; wind.print(); //打印结束后,放开隐藏内容 //document.getElementById("otherpho").style.display="block"; wind.close(); window.document.body.innerHTML = oldstr; } } function closeWindow() { var userAgent = navigator.userAgent; if (confirm("确定关闭当前页面?")) { if (userAgent.indexOf("Firefox") != -1 || userAgent.indexOf("Chrome") != -1) { window.location.href = "about:blank"; window.close(); } else { window.opener = null; window.open("", "_self"); window.close(); } } } // 获取附件中的视频文件 var videoUrl=''; var iconUrl='//www.bmw2002club.com/ZWXX808/SPXW9224/202106/W020210629374623901722.png'; if (videoUrl.indexOf('.mp4')!==-1 || videoUrl.indexOf('.avi')!==-1 || videoUrl.indexOf('.flv')!==-1 || videoUrl.indexOf('.rmvb')!==-1 || videoUrl.indexOf('.wmv')!==-1 || videoUrl.indexOf('.rm')!==-1) { // 附件中有视频 var videoStr= '
'; $('#zoom').prepend(videoStr); }else{ var videoUrls = "http://jyhpt.tj.gov.cn/masvod/public/2021/06/29/20210629_17a559161e3_r1_1200k.mp4," var strArr = videoUrls.split(',') console.log(videoUrls) if(strArr!=''){ $('#zoom'). prepend(function (index) { return '
'; }) } }