HTML Table to JSON

前端 未结 7 1934
小鲜肉
小鲜肉 2020-11-29 06:56

I need to take table rows and convert to JSON.

Any ideas? I have this code here but it does not work.

function tableToJSON(tableID) {
    return $(t         


        
7条回答
  •  我在风中等你
    2020-11-29 07:31

    You should find this helpful: http://encosia.com/use-jquery-to-extract-data-from-html-lists-and-tables/

提交回复
热议问题