解决方案 »

  1.   

    HTML:
     <table id="dt"  fieldid="DeviceID" class="table table-striped b-t text-small" style="border-top:0px;" url="module/Supplieses/SuppliesesRepertory.aspx?Action=OfficeDeviceList"
                  pageSize="20">
                    <thead>
                      <tr>
                        <th type="checkcolumn"></th>
                        <th type="indexcolumn">序号</th>
                        <th field="DName">设备类型</th>
                        <th field="DeviceName">设备名称</th>
                        <th field="DeviceNo">设备编号</th>
                        <th field="DeviceCode">设备条码</th>
                      </tr>
                    </thead> 
                  </table>
    调用: $("#dt").dt();遇到些问题想请教下各位大大
    1、我在自定义插件的写了一个获取已选择数据行的方法来返回已选择的数据行的json数据,想通过一个属性使我可以在使用这个插件的时候获取到已选择数据行的json数据?这个弄了好久弄不出来。
    2、想实现一个重绘的功能,但是不知道改怎么写。
    重绘:例如某一个单元格的字段名为ID,显示出来为这个id的值,通过方法重绘后这个单元格显示的效果为:<a href='javascript:del(id)'>Delete</a>。
    请各位大大帮忙。