企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
### 12.1. 上下文绑定 _angular.bind_ 是用来进行上下文绑定,参数动态绑定的工具函数。 var f = angular.bind({a: 'xx'}, function(){ console.log(this.a); } ); f(); 参数动态绑定: var f = function(x){console.log(x)} angular.bind({}, f, 'x')();