BT.features
BT.features
功能
返回当前解释器能力表。
语法
BT.features()
参数
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
| 无 | - | 否 | 无 | 不需要参数。 |
返回值
| 类型 | 说明 |
|---|---|
| Object | 返回 web、desktop、net、device、mysql、reqwest、crypto、fs、process 等能力布尔值。 |
示例
features = BT.features() result = features.process // 输出:true print result
注意事项
- desktop 会反映当前二进制是否真实启用桌面能力。
- features 返回静态能力表,不做运行期扫描。