单击按钮组中的pdf in按钮
下拉按钮的HTML代码
<div class="btn-group">
<a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#">
Button Primary
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a onclick="open_win()">Button Secondary</a></li>
</ul>
</div>
onclick的javascript部分是
<c:url var="pdfGenerationUrl" value="/data/acess"/>
<script>
function open_win (){
$('#reportIds').attr("action","${pdfGenerationUrl}");
$('#reportIds').submit();
}
</script>
如何在点击open_win上打开一个新窗口