Help us test MDN's new front-end: https://discourse.mozilla.org/t/help-us-test-mdns-new-react-front-end-beta/42593

跳转到:

这篇翻译不完整。请帮忙从英语翻译这篇文章

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

文档标签和贡献者

此页面的贡献者: mdnwebdocs-bot, eret9616
最后编辑者: mdnwebdocs-bot,