Skip to content

Instantly share code, notes, and snippets.

@VioletVivirand
Created April 28, 2017 07:51
Show Gist options
  • Save VioletVivirand/72207f19f2a441765ebf3cdaeffc43b2 to your computer and use it in GitHub Desktop.
Save VioletVivirand/72207f19f2a441765ebf3cdaeffc43b2 to your computer and use it in GitHub Desktop.
Iterate Data
#.getJSON("http://example.com/data.json", function(data) {
table_data = []
for each(item in data) {
row = { node: item.node, value: item.value }
table_data.push(row)
}
somefunction();#
('#realtime_table').bootstrapTable({
data: table_data
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment