V2EX  ›  英汉词典
Enqueued related words: Pub-sub

Customevent

释义 Definition

(多用于软件/前端开发)自定义事件:由开发者自行创建并触发的事件,用来在组件、模块或对象之间传递信息与协调行为(区别于系统内置事件如 click、load 等)。在不同框架/平台中实现方式略有差异。

发音 Pronunciation (IPA)

/ˈkʌstəm ɪˈvɛnt/

例句 Examples

I fired a custom event when the form was submitted.
我在表单提交时触发了一个自定义事件。

The library uses a custom event to notify plugins after the data has been validated, so the UI can update without tightly coupling modules.
该库使用自定义事件在数据验证完成后通知插件,使界面能够更新而不需要把模块紧密耦合在一起。

词源 Etymology

custom 来自中古英语 custume(习俗、惯例),源自古法语 costumeevent 来自拉丁语 eventus(发生、结果)。合起来的 custom event 属于现代技术语汇:强调“不是系统默认提供的,而是按需要自定义的事件”。

相关词 Related Words

文学与作品 Literary Works

该词更常见于技术写作而非传统文学作品,例如:

  • JavaScript: The Definitive Guide(David Flanagan)
  • Eloquent JavaScript(Marijn Haverbeke)
  • Learning React(Alex Banks & Eve Porcello)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2192 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 04:21 · PVG 12:21 · LAX 20:21 · JFK 23:21
♥ Do have faith in what you're doing.