function obj(){
this.name="li";
this.age="24";
this.favorite="chi"
}
var li=new obj();
with(对象){
console.log(name);
console.log(age)
//针对对象内成员进行操作
}
function obj(){
this.name="li";
this.age="24";
this.favorite="chi"
}
var li=new obj();
with(对象){
console.log(name);
console.log(age)
//针对对象内成员进行操作
}