解决方案 »

  1.   

    columns:[[{field:'opt', title:'操作', width:70, align:'center', formatter:function(value, rec, index){
    var f = '<a href="###" onclick="paidan('+ rec.recId+ ')">派单</a>&nbsp;';
    return f;
    }}]]
      

  2.   

    <th data-options="field:'opt',width:100,align :'center',sortable:true,
                formatter: function(value,row,index){
    return '<a href="<%=path %>/view/jcs/bjcl/paidan.jsp" onclick="paidan('+ row.infoId+ ')">派单</a>';
    }">操作</th> 我用的是这种方式的
    你看看行不?没解决!挺感谢你的
      

  3.   

    整啦不少时间出来啦!不容易啊<script type="text/javascript">
    //用于在操作下面添加  跳转页面
    function formatOper(val,row,index){  
            return '<a href="<%=path %>/view/jcs/bjcl/paidan2.jsp">派单</a>';  
        }  
    </script><th data-options="field:'opt',width:100,align :'center',sortable:true,formatter:  formatOper">操作</th>都是写在<body></body>中