How to convert the following table to JSON with javascript?

后端 未结 6 1335
孤城傲影
孤城傲影 2020-11-27 19:15

How to make the following table into a JSON string in jquery/javascript?

6条回答
  •  佛祖请我去吃肉
    2020-11-27 19:47

    Here is a solution without jQuery, inspired by this article:

    function tableToJson(table) { 
        var data = [];
        for (var i=1; i

提交回复
热议问题
Column 1