1.对象创建方式:
直接 var a = new Object();
省略 new var a = Object();
子面量 var a = {name:alihaiseyao,age:28};
2.对象赋值:
a.name
a['name']
3.删除属性:
delete a.name
4.数据模型封装:
var printObject(objc){
alert(objc.name);
alert(objc.age)
}
var objc = {
name:alihaiseyao,
age:26
}
printObject(objc);
5.判断数据是否为空
if(xxx != undefined) return;
6.类型判断 typeof a