Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 677 Pomógł: 11 Dołączył: 18.11.2009 Ostrzeżenie: (0%)
|
W jaki sposób mogę stworzyć tabelę w htmlu z danych poniżej:
<script> $(function () { var dataSource = new $.ig.DataSource({ dataSource: [{ "ProductCategory": "Clothing", "UnitPrice": 12.81, "SellerName": "Stanley Brooker", "Country": "Bulgaria", "City": "Plovdiv", "Date": "01/01/2012", "UnitsSold": 282 }, { "ProductCategory": "Clothing", "UnitPrice": 49.57, "SellerName": "Elisa Longbottom", "Country": "US", "City": "New York", "Date": "01/05/2013", "UnitsSold": 296 }, { "ProductCategory": "Bikes", "UnitPrice": 3.56, "SellerName": "Lydia Burson", "Country": "Uruguay", "City": "Ciudad de la Costa", "Date": "01/06/2011", "UnitsSold": 68 }, { "ProductCategory": "Accessories", "UnitPrice": 85.58, "SellerName": "David Haley", "Country": "UK", "City": "London", "Date": "04/07/2012", "UnitsSold": 293 }, { "ProductCategory": "Components", "UnitPrice": 18.13, "SellerName": "John Smith", "Country": "Japan", "City": "Yokohama", "Date": "12/08/2012", "UnitsSold": 240 }, { "ProductCategory": "Clothing", "UnitPrice": 68.33, "SellerName": "Larry Lieb", "Country": "Uruguay", "City": "Ciudad de la Costa", "Date": "05/12/2011", "UnitsSold": 456 }, { "ProductCategory": "Components", "UnitPrice": 16.05, "SellerName": "Walter Pang", "Country": "Bulgaria", "City": "Sofia", "Date": "02/19/2013", "UnitsSold": 492 }] }); }); </script> |
|
|
|
Randallmaster [JavaScript]Stworzenie tabeli za pomocą JQUERY 17.04.2014, 14:24:03
MWL Each w jQuery i składasz po kolei w pętlach odpowi... 17.04.2014, 15:05:11
Randallmaster Udało mi się stworzyć tabelę. Mam jeszcze pytanie:... 18.04.2014, 10:11:11
nospor Tym ze jedna to nie tablica.....
Pierwsze to obiek... 18.04.2014, 10:11:45
Randallmaster var dataTable = {
rows: "ProductCategory... 18.04.2014, 10:29:41
nospor Tak jak w php...
val[dataTable.rows]
pod warunkie... 18.04.2014, 10:31:04
Randallmaster Super działa
a jak odczytać wartość "sort... 18.04.2014, 11:25:36
nospor skoro uzywasz jQuery to moglbys sie zaprzyjaznic z... 18.04.2014, 11:26:59
Randallmaster Dzięki 18.04.2014, 11:44:41 ![]() ![]() |
|
Aktualny czas: 21.12.2025 - 15:36 |