“启用/禁用”这个词是什么?

发布于 2024-08-27 10:14:18 字数 110 浏览 4 评论 0原文

当我想评论有关控件启用/禁用的代码时,以及当我想与人们讨论控件启用/禁用时,我真的希望实际上有一个词,而不是键入或说“启用/禁用”。

目前我使用EnDisable这个词,它的真正含义是什么?

When I want to comment code about control Enable/Disable and when I want to discuss with people about the control Enable/Disable, I really hope there is actually a word to it instead of typing or saying "Enable/Disable".

Currently I use the word EnDisable, what is the real word of it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

很酷不放纵 2024-09-03 10:14:18

我建议使用“切换”,尽管它并不完全意味着启用/禁用,但它通常在用户界面的上下文中使用(如 @Pekka 提到的)。

I would suggest using "toggle" as although it doesn't exactly mean Enable/Disable it is commonly used as such in the context of user interfaces (as @Pekka mentioned).

酒解孤独 2024-09-03 10:14:18

我用“能力”,因为如果某件事是“启用”的,那么它是“能够”的,如果它是“禁用”的,那么它是“无法”的,所以“能力”对我来说很有效,而且很容易理解。
为了切换参数,我将函数命名为“setAbility”。

I use "Ability", because if something is "enabled", it is "able to", and if it's "disabled" it is "unable to", so "ability" works for me and it's quite understandable.
To switch the parameter I name my function "setAbility".

提笔书几行 2024-09-03 10:14:18

确实取决于上下文。

  • 改变控件的状态?
  • 转变?
  • 改变?

更新:@Yacoby 拥有完美的一个,它广泛用于用户界面上下文中。

Really depends on the context.

  • Changing of a control's status?
  • Switch?
  • Change?

Update: @Yacoby has the perfect one, it's widely used in user interface contexts.

仙女 2024-09-03 10:14:18

如果我正在编写根据其他数据启用或禁用某些功能的函数,我通常将它们称为“ToggleXXX”。

If I'm writing functions that enable or disable something depending some other data, I usually call them "ToggleXXX".

东北女汉子 2024-09-03 10:14:18

取决于上下文。如果你指的是生命支持系统,可能是“杀戮”。

Depends on the context. If you are referring to a life-support system, 'Kill' probably.

情绪 2024-09-03 10:14:18

根据上下文,但如果谈论默认情况下启用或禁用某些内容,我会建议行为

其他词如动作、切换或条件也可以根据上下文起作用

Depending on the context, but I would suggest Behavior if talking about whether something is enabled or disabled by default.

Other words like action, toggle, or condition can also work depending on the context

少年亿悲伤 2024-09-03 10:14:18

有条件是另一种选择。

Conditional is another option.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文