标签:
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();
标签:
原文地址:http://www.cnblogs.com/feile/p/5400547.html