V2EX  ›  英汉词典

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(习俗、惯例),源自古法语 costume;event 来自拉丁语 eventus(发生、结果)。合起来的 custom event 属于现代技术语汇:强调“不是系统默认提供的,而是按需要自定义的事件”。

相关词 Related Words

文学与作品 Literary Works

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

  • JavaScript: The Definitive Guide(David Flanagan)
  • Eloquent JavaScript(Marijn Haverbeke)
  • Learning React(Alex Banks & Eve Porcello)
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   704 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 28ms · UTC 17:50 · PVG 01:50 · LAX 09:50 · JFK 12:50
♥ Do have faith in what you're doing.