前端学习笔记202310学习笔记第一百零玖天-vue3-链式调用&对象属性与遍历&this指向&caller_callee之13
var geyao={
name:"geyao",
age:18
}
console.log('age' in geyao) //true
function Car(){
this.brand='TAGE',
this.color='red'
}
Car.prototype={
displacement:'3.0'
}
var car=new Car();
console.log('displacement' in car)
运行结果