Also in: Attributes | Manipulation > General Attributes .attr() 获取匹配的元素集合中的第一个元素的属性的值 或 设置每一个匹配元素的一个或多个属性。