1. var A = function() {
    2. }
    3. A.prototype.n = 1
    4. var b = new A()
    5. A.prototype = {
    6. n: 2,
    7. m: 3
    8. }
    9. var c = new A()
    10. console.log(b.n, b.m, c.n, c.m) //1 undefined 2 3
    1. var F = function(){};
    2. Object.prototype.a = function(){
    3. console.log('a()')
    4. };
    5. Function.prototype.b = function(){
    6. console.log('b()')
    7. };
    8. var f = new F();
    9. f.a() //a()
    10. f.b() //f.b is not a function
    11. F.a() //a()
    12. F.b() //b()