1. function fn(obj){
    2. function f(){}
    3. f.prototype = obj
    4. return new f()
    5. }