创建一个具有动态属性名称的对象
var KEYS = {} ;KEYS.PHONE_TYPE = 'phone-type';KEYS.AGENT_TYPE = 'agent-type';var myAppConfig = { ... iconMap : { KEYS.PHONE_TYPE : 'icon-phone', KEYS.AGENT_TYPE : 'icon-headphones' }; ...};
Expected ':' and instead saw '.'.
{ 'phone-type' : 'icon-phone', 'agent-type' : 'icon-headphones'}
温温酱
牛魔王的故事
相关分类