1

私はeasyuiデータグリッドを使用しています

選択した行に基づいてデータグリッドに別のデータセットを設定する新しいボタンを追加しました。

ここにボタンがあります:

a href="#" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="view-breakdown()">View Breakdown</a>    

これは私のテーブルです:

<table id="dg" title="My Users" class="easyui-datagrid" style="width:980px;height:370px;"
        url="get_users.php"
        toolbar="#toolbar" pagination="true"
        rownumbers="true" fitColumns="true" singleSelect="true" height="auto";>
    <thead>
        <tr>
        <th field="item_group_desc" width="50">item description</th>
        </tr>
    </thead>
</table>

関数 view_breakdown() で item_group_desc の値を取得し、テーブルの URL を「breakdown.php」に変更するにはどうすればよいですか? 前もって感謝します

4

1 に答える 1

0

このようにしてみて、

view_breakdown()
{
   $('#dg').datagrid({
      url:'breakdown.php'});
 }  
于 2013-08-21T07:21:21.737 に答える