jQuery 屬性操作 - removeAttr() 方法
定義和用法
removeAttr() 方法從被選元素中移除屬性。
語(yǔ)法
$(selector).removeAttr(attribute)
| 參數(shù) | 描述 |
|---|---|
| attribute | 必需。規(guī)定從指定元素中移除的屬性。 |
removeAttr() 方法從被選元素中移除屬性。
$(selector).removeAttr(attribute)
| 參數(shù) | 描述 |
|---|---|
| attribute | 必需。規(guī)定從指定元素中移除的屬性。 |