伊图教程网[www.etoow.com]
http://www.etoow.com/html/2007-08/1187438805.html
book.title="测试";
alert(book,title);
属性是通过一个值赋给对象的一个新属性来创建它。虽然通常用关键字var来声明变量,但是声明对象属性不用。
属性的枚举:for/in循环提供了一种遍历对象属性的方法
function displayppName(obj)
{
var name="";
for(var name in obj)
name+=name+"\n"
alert(name);
}
JavaScript对象和属性
'http://www.etoow.com/html/2007-08/1187438805.html