where the method body is the contents of the curly braces.
表示闭包,其中方法的主体就是花括号中的内容。
If a method body has more than one expression, you must surround it with curly braces {...}. You can omit the braces if the method body has just one expression.
如果一个方法的主体包含多于一个的表达式,你必须用大括号来把它们包起来。你可以在方法主体只有一个表达式的时候省略大括号。
The method body calls the map method on the strings array, which takes a function literal as an argument.
函数的主体调用了strings数组的map方法,它接受一个字面函数(Function Literal)作为参数。
The method body calls the map method on the strings array, which takes a function literal as an argument.
函数的主体调用了strings数组的map方法,它接受一个字面函数(Function Literal)作为参数。
应用推荐