StackOverflow 文档 Scala Language 教程 Scala.js 胖箭头函数 胖箭头函数 Created: November-22, 2018 val lastNames = people.map(p => p.lastName) // Or shorter: val lastNames = people.map(_.lastName) 简单的类Scala.js 中的 console.log