napi_get_property
napi_status napi_get_property(napi_env env,
napi_value object,
napi_value key,
napi_value* result); [in] env:调用 Node-API 时所处的环境。[in] 对象:要从中获取属性的对象。[in] key:要检索的属性名称。[out] result:该属性的值。
如果 API 成功,则返回 napi_ok。
【Returns napi_ok if the API succeeded.】
该 API 从传入的 Object 中获取所请求的属性。
【This API gets the requested property from the Object passed in.】