angular.bind
angular.bind
:Returns a function which calls function fn bound to self (self becomes the this for fn). You can supply optional args that are prebound to the function. This feature is also known as partial application, as distinguished from function currying.
Usage
:angular.bind(self, fn, args);
| Param | Type | Details |
|---|---|---|
| self | Object |
Context which |
| fn | function() |
Function to be bound. |
| args | * |
Optional arguments to be prebound to the |
Returns
| function() |
Function that wraps the |
后续我的博客将在我的个人网站 https://skyfi.github.io/ 上进行书写,cnblog更新会迟延,给你带来不便,很是抱歉。

浙公网安备 33010602011771号