var F = function(){
getN = function(){
console.log("1")
}
return this;
}
F.getN = function(){
console.log("2");
}
F.prototype.getN = function(){
console.log("3")
}
var getN = function(){
console.log("4")
}
function getN(){
console.log("5")
}
getN()
F.getN()
F().getN()
new F().getN()
getN()
记录,备忘:变量式声明大于函数式声明,简单说就是变量提升时的变量声明在函数声明的之后。