var attributes={id:1,cls:"file"};
//访问方式1
alert(attributes.id);
//访问方式2
alert(attributes[cls]);
//添加新属性
name attributes.name = "jsonStr";
var text = "width";
//可动态添加新属性
text attributes.text = "this is a new attribute named 'text'. ";
//添加新属性width[注意与上面语句的区别]
attributes[text] = 50;