var a = 'this';
我想
var z = { a: 'that' } === { 'this': 'that'}
然而:-
alert( z.this); // output is 'undefined'
alert(z.a); // output is 'that'
如何使用变量定义 z 的字段?
以便...
alert( z.this); // output becomes 'that'
用例:动态创建对象z
,而不是对其字段进行硬编码。