如果我console.log
代码我得到相同的结果。 potential.prototype.constructor
和potential
之间有何区别?我们如何使用它?
function potential(Action, Romantic, Drama, Comedy){
this.Action = "Action";
this.Romantic = "Romantic";
this.Drama = "Drama";
this.Comedy = "Comedy";
}
console.log(potential.prototype.constructor);
console.log(potential);