版本
语言

ASP.NET Core MVC / Razor Pages UI: JavaScript Features API

abp.features API allows you to check features or get the values of the features on the client side. You can read the current value of a feature in the client side only if it is allowed by the feature definition (on the server side).

This document only explains the JavaScript API. See the Features document to understand the ABP Features system.

Basic Usage

//Gets a value as string.
var value = abp.features.get('ExportingToExcel');

//Check the feature is enabled
var enabled = abp.features.isEnabled('ExportingToExcel.Enabled');

All Values

abp.features.values can be used to access to the all feature values.

An example value of this object is shown below:

{
  Identity.TwoFactor: "Optional",
  ExportingToExcel.Enabled: "true",
  ...
}
本页对您有帮助吗?
请进行选择。
感谢您的宝贵意见!

请注意,虽然我们无法回复反馈意见,但我们的团队会根据您的意见改进体验。

在本文档中
Mastering ABP Framework Book
掌握 ABP 框架

本书将帮助你全面了解框架和现代Web应用程序开发技术。