Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
|
|
@ -2,4 +2,4 @@ var array = [];
|
|||
array.push('abc');
|
||||
array.push(123);
|
||||
array.push(new MyClass);
|
||||
alert( array[2] );
|
||||
console.log( array[2] );
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
var map = {};
|
||||
map['foo'] = 'xyz'; //equivalent to: map.foo = 'xyz';
|
||||
map['bar'] = new MyClass; //equivalent to: map.bar = new MyClass;
|
||||
map['1x; ~~:-b'] = 'text'; //no equivalent
|
||||
alert( map['1x; ~~:-b'] );
|
||||
var obj = {};
|
||||
obj['foo'] = 'xyz'; //equivalent to: obj.foo = 'xyz';
|
||||
obj['bar'] = new MyClass; //equivalent to: obj.bar = new MyClass;
|
||||
obj['1x; ~~:-b'] = 'text'; //no equivalent
|
||||
console.log(obj['1x; ~~:-b']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue