Jason(JavaScript Object Notation,JavaScript对象表示法)
function sayLoudly() { alert(this.firstName.toUpperCase()); } var newObject = {//每个子对象间用,分割 firstName : "frank", sayName : function() { alert(this.firstName) }, sayLoudly : sayLoudly, LastName : { lastName : "Zammetti", sayName : function() { alert(this.lastName); } } }; newObject.LastName.sayName();