仅提醒您一下这个代码是 ExtJS 4 脚本的一部分 。 我有一个全球设置, 我用它来显示通往图标所在的目录路径 。 我之前正在做一些修改 :
g_ 设置. iconUrl
但现在我需要通过第三个争论 财产像这样:
g_ 设置. iconUrl.docIcon
我遇到的问题是 我有一个 if
语句, 其中我检查不同的值 :
(extensions succession =================================================================================)
然后我会说:
扩展 + 图标 ;
我需要使用:
g_ 设置. iconUrl.extension
当我使用 conole.log(extension)
< its value is as expect(例如 docIcon
),但当我试图使用它作为属性时,它不起作用。 如果我使用控制台。 log on :
console.log(g_ 设置. iconUrl+ . +extensions)
the output is [object Object].docIcon
so I think I have to convert somehow extensions
to object too.
I m not sure that this will solve the problem but that s what I have for now.
有什么建议吗?
谢谢 谢谢
勒伦