How to display the column headers dynamically in jquery data table
问题 I have the below code for displaying array of objects having property and a value in a data table. But here the column headers are hardcoded as seen in my below html code. How can I make it dynamic based on the input dataset? var dataSet = [{ "Latitude": 18.00, "Longitude": 23.00, "Name": "Pune" }, { "Latitude": 14.00, "Longitude": 24.00, "Name": "Mumbai" }, { "Latitude": 34.004654, "Longitude": -4.005465, "Name": "Delhi" },{ "Latitude": 23.004564, "Longitude": 23.007897, "Name": "Jaipur" }];