首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏杰的记事本

    ES6中的Proxy和Reflect

    (P, key, context); } } } } }, obj3 = new Proxy({ name: "obj this.bar(); } },handlers); obj3[Symbol.for("[[Prototype]]")] = [obj1, obj2]; obj3.baz(); //obj1.foo:obj -3 //obj2.bar:obj-3 如果我们要实现对象间的单继承,比如obj3继承在obj1,可以使用Object.setPrototypeOf方法,但是没法实现多继承。

    71920发布于 2019-09-04
  • 来自专栏python3

    Python协程中使用上下文

    obj_ref_dict obj-0: <A|x: 0> in obj_ref_dict obj-1: <A|x: 1> in obj_ref_dict obj-2: <A|x: 2> in obj_ref_dict obj from obj_ref_dict obj-0: None in obj_ref_dict obj-1: None in obj_ref_dict obj-2: None in obj_ref_dict obj

    1.6K30发布于 2020-01-19
领券