【发布时间】:2009-12-06 06:49:51
【问题描述】:
是否可以缩短命令,例如...
this.ExampleCommand1.ExampleCommand2.1;
this.ExampleCommand1.ExampleCommand2.2;
this.ExampleCommand1.ExampleCommand2.3;
到
ExampleShorten = "this.ExampleCommand1.ExampleCommand2";
ExampleShorten.1;
ExampleShorten.2;
ExampleShorten.3;
?
【问题讨论】:
-
这是什么代码?什么是“命令”?
-
你怎么会访问一个名为
1、2或3的成员?