Wrapper

您正在阅读此内容的英文版本,因为该语系尚未翻译。 帮助我们翻译此文章吧!

In programming languages such as JavaScript, a wrapper is a function that is intended to call one or more other functions, sometimes purely for convenience, and sometimes adapting them to do a slightly different task in the process.

在如JavaScript的编程语言中,装饰器(包裹)函数通过装饰一个或多个其他函数,改变这些函数内容以让他们更为方便的使用,或适应不同的工作。

例如, AWS的SDK库。

Learn more

General knowledge

Wrapper function on Wikipedia