阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js N-API napi_define_properties

      Node.js N-API napi_define_properties

      新增于: v8.0.0 N-API version: 1 napi_status napi_define_properties(napi_env env, napi_value object, size_t property_count, const napi_property_descriptor* properties); [in] env: The environment that the N-API call is invoked under. [in] object: The object from which to retrieve the properties. [in] property_count: The number of elements in the properties array. [in] properties: The array of property descriptors. Returns napi_ok if the API succeeded.

      This method allows the efficient definition of multiple properties on a given object. The properties are defined using property descriptors (see napi_property_descriptor). Given an array of such property descriptors, this API will set the properties on the object one at a time, as defined by DefineOwnProperty() (described in Section 9.1.6 of the ECMA262 specification).


      更多内容请参考:Node.js N-API,或者通过 点击对应菜单 进行查看;


      目录
      本文目录
      目录