欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

jQuery 屬性操作 - removeAttr() 方法

實(shí)例

從任何 p 元素中移除 id 屬性:

$("button").click(function(){
  $("p").removeAttr("id");
});

親自試一試

定義和用法

removeAttr() 方法從被選元素中移除屬性。

語(yǔ)法

$(selector).removeAttr(attribute)
參數(shù) 描述
attribute 必需。規(guī)定從指定元素中移除的屬性。