简体   繁体   中英

create dynamic table for comparing data column wise

I would like to create table result in dynamic format like data is coming from asp.net api and can be available in object or json format like

 ` [{"title":'Header1', {"prop1":"data1"}.....}, {"title":"Header2", {"prop1":"data1"}.....} ] `

|-------------------------------------------------------|

      | Header1 | Header2   |............

|-------------------------------------------------------|

| prop1 | data1 | data2 |

|-------------------------------------------------------|

|prop2 | data12| data22 |

--------------------------------------------------------|

Please reference some jquery plugins like datatables, they have great functionality and can be molded to do just about anything you want.

https://datatables.net/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM