JavaScript对象的定义
JavaScript对象定义如下: Function Object(属性表) This.prop1=prop1 This.prop2=prop2 ... This.meth=FunctionName1; This.meth=FunctionName2; ...对象可指明属性和方法,构成实例。示例: Function university(name,city,creatDate URL) This.name=name This.city=city This.creatDate=New Date(creatDate) This.URL=URL属性含义: Name-指定一个“单位”名称。 City-“单位”所在城市。 CreatDate-记载对象更新日期。 URL-指向一个网址。
254KB
文件大小:
评论区