我想做相当于...
//Nonsensical
config.items=[Ext.create('Foo.register.AccountTypeForm',{config:arguments.hidden=true})];
//works ofc, but it looks untidy
arguments.hidden=true;
config.items=[Ext.create('Foo.register.AccountTypeForm',{config:arguments})];
最佳答案
你能做到吗?
config.items=[Ext.create('Foo.register.AccountTypeForm',
{config:{hidden:true}})];
或者您需要稍后再次引用参数对象?
关于javascript - 我怎样才能默认对象?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6443707/