attr一词语原意思为attribute即为属性。 在js中会用到attr,另外一个属性为prop 至于attr与prop的区别,可以自行Goog