或者,通過Underscore JavaScript 庫,您可以使用_.first 方法,如果沒有指定參數,它只返回數組的第一個元素。它的別名 _.head 和 _.take 也可以使用。
確定! 回上一頁