map(function(index, item){ … }) ⇒ collection
遍历对象集合中的所有元素。通过遍历函数返回值形成一个新的集合对象。在遍历函数中this关键之指向当前循环的项(遍历函数中的第二个参数)。
遍历中返回 null和undefined,遍历将结束。
// get text contents of all elements in collection elements.map(function(){ return $(this).text() }).get().join(', ')