$(this).attr(key); 获取节点属性名的值,相当于getAttribute(key)方法$(this).attr(key, value); 设置节点属性的值,相当于setAttribute(key,value)方法