Javascript 如何在jquery中打开多窗口浏览器

Javascript 如何在jquery中打开多窗口浏览器,javascript,jquery,Javascript,Jquery,我想在窗口浏览器中显示我的pdf,实际上它可以很好地用于单个pdf 我想同时打开两个窗口浏览器。。。 这是我的问题。。。 它可以同时工作任何一个不是两个…但值获取一切工作正常…提前谢谢你 if (is_chrome) { window.open('<%: Url.Action("PrintLabelasPDFChrome", "Shipments") %>' + '?OrderNumber=' + orderno + '&orderItemN

我想在窗口浏览器中显示我的pdf,实际上它可以很好地用于单个pdf 我想同时打开两个窗口浏览器。。。 这是我的问题。。。 它可以同时工作任何一个不是两个…但值获取一切工作正常…提前谢谢你

    if (is_chrome) {

            window.open('<%: Url.Action("PrintLabelasPDFChrome", "Shipments") %>' + '?OrderNumber=' + orderno + '&orderItemNo=' + orderItemNo + '&orderShipmentID=' + orderShipmentID + '&strPackinglistDetail=' + '' + '&shipdate=' + '' + '&OrderGuid=' + '', 'Lables', 'attribute1,attribute2');
           window.open('<%: Url.Action("PrintCustomLabel", "Shipments") %>' + '?orderShipmentID=' + orderShipmentID + '&strPackinglistDetail=CustomsDocument', 'Lables', 'attribute1,attribute2');
        }
       else {

            window.open('<%: Url.Action("PrintLabelPDF", "Shipments") %>' + '?OrderNumber=' + orderno + '&orderItemNo=' + orderItemNo + '&orderShipmentID=' + orderShipmentID + '&strPackinglistDetail=' + '' + '&shipdate=' + '' + '&OrderGuid=' + '', 'Lables', 'attribute1,attribute2');
            window.open('<%: Url.Action("PrintCustomLabel", "Shipments") %>' + '?orderShipmentID=' + orderShipmentID + '&strPackinglistDetail=CustomsDocument', 'Lables', 'attribute1,attribute2');
        }                                                                                          
if(是铬){
window.open('+'?OrderNumber='+orderno+'&orderItemNo='+orderItemNo+'&orderShipmentID='+orderShipmentID+'&strPackinglistDetail='+'+'+''+'&shipdate='+'+'&OrderGuid='+'''+'','Lables','attribute1,attribute2');
window.open(“”+”?orderShipmentID=‘+orderShipmentID+’&strPackinglistDetail=CustomsDocument’、‘Lables’、‘attribute1、attribute2’);
}
否则{
window.open('+'?OrderNumber='+orderno+'&orderItemNo='+orderItemNo+'&orderShipmentID='+orderShipmentID+'&strPackinglistDetail='+'+'+''+'&shipdate='+'+'&OrderGuid='+'''+'','Lables','attribute1,attribute2');
window.open(“”+”?orderShipmentID=‘+orderShipmentID+’&strPackinglistDetail=CustomsDocument’、‘Lables’、‘attribute1、attribute2’);
}                                                                                          

这是纯Javascript,不是jQuery

您只需指定新的windowName即可创建新的windowName。只需在windowName中添加一个uid,与每个pdf文件对应

window.open('actionToFileNo1', 'documentWindow1');

引用。

这是纯Javascript,不是jQuery

您只需指定新的windowName即可创建新的windowName。只需在windowName中添加一个uid,与每个pdf文件对应

window.open('actionToFileNo1', 'documentWindow1');

参考资料。

简单地说,它应该是有效的。检查这把小提琴。以上内容在浏览器中是如何呈现的?简单地说,它应该可以工作。检查这把小提琴。以上内容如何在浏览器中呈现?