var obj = { name: 'xiaoming', age: 22, number: '007', score: 99 }; //对象单元值的读取 //alert(obj['name']); //alert(obj.name);