采用任何 1 参数函数并将其链接到另一个函数的最简单方法是什么?
所以这看起来像......
red = function (target) {target.$.style.backgroundColor("red");}
blue = function (target) {target.$.style.backgroundColor("blue");}
body = $("body");
red(body);
#body is now red
makeFunctionChainable(blue);
body.blue()
#body is now blue