
chaining
词源
源自中古英语 'chainen',来自古法语 'chainer',最终来源于拉丁语 'catena',意为“链条”。
noun
❶ 将多个事物或操作连接在一起的行为或过程,常用于编程或逻辑中表示一系列连续的操作。
“Method chaining allows you to call multiple methods on an object in a single line.”
(方法链式调用允许你在单行中对一个对象调用多个方法。)
“The chaining of events led to an unexpected outcome.”
(一系列事件的连锁反应导致了意想不到的结果。)
verb
❶ 将事物或操作连接起来的行为,通常指在编程或逻辑中以连续的方式执行多个操作。
“You can chain multiple functions together for cleaner code.”
(你可以将多个函数链式调用,使代码更简洁。)
“She is chaining the operations to improve performance.”
(她正在将操作链式调用以提高性能。)
常见短语
method chaining — 编程中一种技术,允许在单行代码中连续调用多个方法,通常返回对象本身以实现链式调用。
“JavaScript's jQuery library is famous for its method chaining syntax.”
(JavaScript 的 jQuery 库因其方法链式调用语法而闻名。)
chain of events — 指一系列相互关联的事件,通常强调一个事件引发另一个事件的连续过程。
“The accident was caused by a chain of events that no one predicted.”
(这场事故是由一系列无人预料的事件连锁反应引起的。)