Created
April 28, 2017 07:51
-
-
Save VioletVivirand/72207f19f2a441765ebf3cdaeffc43b2 to your computer and use it in GitHub Desktop.
Iterate Data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#.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