napi_get_boolean
napi_status napi_get_boolean(napi_env env, bool value, napi_value* result) [in] env:API 被调用时所处的环境。[in] value:要获取的布尔值。[out] result:napi_value代表要检索的 JavaScriptBoolean单例。
如果 API 成功,则返回 napi_ok。
🌐 Returns napi_ok if the API succeeded.
此 API 用于返回用于表示给定布尔值的 JavaScript 单例对象。
🌐 This API is used to return the JavaScript singleton object that is used to represent the given boolean value.