未捕获的TypeError:$(...)。tableToJSON不是函数

时间:2016-03-23 09:40:16

标签: json html-table

这个优秀的jquery插件有什么变化吗?我一直得到这个“未捕获的TypeError:$(...)。tableToJSON不是一个函数” - 错误,虽然我的资源是正确的。

1 个答案:

答案 0 :(得分:1)

以下是示例。

<script>
$('#convert-table').click( function() {
  var table = $('#example-table').tableToJSON(); // Convert the table into a javascript object
  console.log(table);
  alert(JSON.stringify(table));
});
</script>

参考此链接

http://lightswitch05.github.io/table-to-json/