📜  javascript 绑定多个参数 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:53.304000             🧑  作者: Mango

代码示例1
var sum = function(a, b, c) { return a + b + c };
var sumAB = sum.bind(null, 1, 5);
var sumC = sumAB.bind(null, 2);

console.log(sumC());