function foo() {
foo.a=function(){
console.log(1)
}
this.a=function(){
console.log(2)
}
a=function () {
console.log(3)
}
var a = function(){
console.log(4)
}
}
foo.a=function(){
console.log(6)
}
var obj = new foo();
foo.a()
//为什么是1 不是直接调用吗?
qq_花开花谢_0