douduan1953 2013-07-07 14:33
浏览 40

具有可编辑字段和添加行设施的数据网格

is there any of plugins that can help me on displaying daa on a table as well as edit it on runtime which helps to add new row automatically same like ms access table

  • 写回答

1条回答 默认 最新

  • doushi6932 2013-07-07 14:36
    关注

    Have you tried handsontable.com Source code available from https://github.com/warpech/jquery-handsontable

    <script src="../lib/jquery.min.js"></script>
    <script src="dist/jquery.handsontable.full.js"></script>
    <link rel="stylesheet" media="screen" href="dist/jquery.handsontable.full.css">
    
    <div id="dataTable"></div>
    <script>
      var data = [
        ["", "Kia", "Nissan", "Toyota", "Honda"],
        ["2008", 10, 11, 12, 13],
        ["2009", 20, 11, 14, 13],
        ["2010", 30, 15, 12, 13]
      ];
      $("#dataTable").handsontable({
        data: data,
        startRows: 6,
        startCols: 8
      });
    </script>
    
    评论

报告相同问题?