神岛 API 文档 - ArenaPro版
    Preparing search index...
    • Sets the prototype of a specified object o to object proto or null.

      Parameters

      • target: object

        The object to change its prototype.

      • proto: object

        The value of the new prototype or null.

      Returns boolean

      Whether setting the prototype was successful.

    • Parameters

      • target: object
      • proto: any

      Returns boolean

      设置一个对象的原型(即其内部的 [[Prototype]] 属性)。

      Sets the prototype of an object (its internal [[Prototype]] property).