Webdevelopment
Drupal
Betriebssysteme
Design
Sonstige
Di., 24/07/2012 - 12:43
Body
http://de.selfhtml.org/javascript/objekte/array.htm
http://www.hunlock.com/blogs/Mastering_Javascript_Arrays
http://www.teialehrbuch.de/Kostenlose-Kurse/JavaScript/12757-Mehrdimensionale-Arrays.html
http://stackoverflow.com/questions/966225/how-to-create-a-two-dimensional-array-in-javascript
https://developer.mozilla.org/en/JavaScript/Guide/Predefined_Core_Objects#Array_Object
Simples array
Zahlen = new Array(34, 86, 167, 413);
OR
- var eu_countries = [
- "AT",
- "BE",
- "BG",
- "CY",
- "CZ",
- ];
Multidimensional associative array
http://stackoverflow.com/questions/4329092/multi-dimensional-associative-arrays-in-javascriptObjects
Tip from PigDude #javascript freenet function ns(path) { return path.split('.').reduce(function(o, part) { return o[part] = {}; }, this); } ns('values_found.homepage.field_url'); values_found.homepage.field_url; usage var ab = ns('a.b'); ab.c = [1, 2, 3], ... would make a.b.c [1, 2, 3]
Webdevelopment
Add new comment