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] result:napi_value代表 JavaScriptnull对象。¥
[out] result:napi_valuerepresenting JavaScriptnullobject.
如果 API 成功,则返回 napi_ok。
¥Returns napi_ok if the API succeeded.
此 API 返回 null 对象。
¥This API returns the null object.