var subHead = $('div.inner p'); for(var i=0;i<subHead.length;i++){ console.log(subHead[i]) subHead[i].addClass('sub-heading-show') } 查看完整描述