napi_get_null


napi_status napi_get_null(napi_env env, napi_value* result) 
  • [in] env:调用 API 的环境。

    ¥[in] env: The environment that the API is invoked under.

  • [out] resultnapi_value 代表 JavaScript null 对象。

    ¥[out] result: napi_value representing JavaScript null object.

如果 API 成功,则返回 napi_ok

¥Returns napi_ok if the API succeeded.

此 API 返回 null 对象。

¥This API returns the null object.