Typically, a hook will call the original function at some point in order to preserve the original behavior.
一般,挂钩还会调用原先的函数,目的是维为了持原来的行为。
In this case the returned function object is a closure which encapsulates some logging code and the data needed to call the original function.
这种情况下返回的函数对象就是一个闭包,其中封装了一些日志代码和最初的函数调用所需要的数据。
That command is simply a call to the built-in setpos function, passing the value the original information from the earlier call to getpos .
该命令仅调用内置的setpos函数,将原始的值信息从先前的调用传导到getpos 。
应用推荐