JS数组、outerHtml、className
//对象转换为数组
function obj(){
for(var i=0;i<arguments.length;i++){
this[i]=arguments[i];
}
}
var o2=new obj(111,222,333,"www");
alert(o2[3]);
时间驱动模型
------------------
var oneDiv=document.getElementById("oneDiv");
oneDiv.innerHTML="xxx";
alert(oneDiv.outerHTML);
oneDiv.style.color.color="red";
oneDiv.style.background-color="red";
oneDiv.className="oneDiv";
(.oneDiv{width:100px;
border:1px solid green;
color:yellow;
})