SOURCE

function Car(options){
    this.brank=options.brank
}
function Person(options){
    Car.apply(this,[options])
    this.name=options.name
    this.fn=function(){
        console.log(this.name+'人开着'+this.brank)
    }
}
var person = new Person({
    name:"小红",
    brank:"江南TT"
})
console 命令行工具 X clear

                    
>
console