如题,怎么在表格里点击超链接,打开一个新的tab页,并传递参数,
<table data-toggle="topjui-datagrid" data-options="id:'productDg1',url:'/ask/article/S004'"> <thead>
<tr>
<th data-options="field:'DISID',title:'编码',width:80"></th>
<th data-options="field:'NAME',title:'名称',width:250"></th>
<th data-options="field:'operate',title:'操作',width:120,formatter: operateFormatter"></th>
</tr>
</thead>
</table>
<script type="text/javascript">
function operateFormatter(value, row, index) {
// var htmlstr = '<a href="javascript:void(0)" data-toggle="topjui-menubutton" data-options="event:\'openTab\',btnCls:\'topjui-btn-normal\'" style="background-color:#DD4B39; height:25px;">1</a>';
// var htmlstr = '<a href="javascript:void(0)" data-toggle="topjui-menubutton" data-options="event:\'openTab\'" style="background-color:#DD4B39; height:25px;" >查看各情况</a>';
// return htmlstr;
}
</script>
想把下面这个类似的连接放上去
<a href="javascript:void(0)"
data-toggle="topjui-menubutton"
data-options="event:'openTab',
btnCls:'topjui-btn-normal',
tab:{
title:'{$vo.NAME}',
href:'__APP__/Score/S002_1/id/{$vo.DISID}/area/{$vo.AREA}/y1/{$y1}/y2/{$y2}/name/{$vo.NAME}'
}" style="background-color:#DD4B39; height:25px;"></a>