我很难理解书中的一些示例代码JavaScriptAllongé(在线版免费)。示例代码是一个函数,用于计算给定直径的周长。它显示了将值与名称绑定(bind)的不同方法。根据这本书,一种解决方法是:((diameter)=>((PI)=>diameter*PI)(3.14159265))(2);//calculatescircumferencegivendiameter2它进一步指出:Well,thewrinklewiththisisthattypically,invokingfunctionsisconsiderablymoreexpensivethanevaluatingexpres