0

是否有任何插件可以帮助我在表上显示 daa 以及在运行时编辑它,这有助于自动添加新行,就像 ms 访问表一样

4

1 回答 1

0

您是否尝试过 handsontable.com 源代码可从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>
于 2013-07-07T14:36:13.177 回答