attr() attr() 是获取元素属性 prop() 获取的是DOM属性 console.dir($0) 获取这个元素的所有属性,是dom封装出来的 什么样的元素,attr() 属性和 prop() 属性是一样的呢? img ,a