Method function name- 方法函数名称
You then can call the functions using standard function call syntax, by combining this prefix with the name of the method to be invoked.
然后通过组合该前缀与被调用方法的名称,可以使用标准的函数调用语法调用函数。
To make this method a little easier, I wrap the access to the variable in a second function that takes a configuration key name and a default value, as shown below.
为使这个方法更加简单,将对变量的访问封装在第二个函数中,该函数使用配置键名及一个缺省值作为参数,如下所示。
When an instance receives a message, it executes a corresponding function, called a method, which has the same name as the message.
当实例接收消息时,它执行相应的功能,称为方法,它有与消息相同的名称。
应用推荐