// 每一个函数都有一个 prototype 属性,
// 它默认指向一个空对象object
// (即原型对象,原型对象没有我们的属性),
// 原型对象有一个constructor,他指向函数对象 fun.prototype.constructor === fun,
// 给原型对象添加方法一般是给 提供给实例对象访问
function fun () {
console.log('aaa')
}
console.log(fun.prototype.constructor === fun)
fun.prototype.talkhellow = function () {
console.log('hellow')
}
var Fun = new fun()
console.log(Fun)
Fun.talkhellow()