AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
# jQuery 属性操作 - removeAttr() 方法 ## 实例 从任何 p 元素中移除 id 属性: ``` $("button").click(function(){ $("p").removeAttr("id"); }); ``` ## 定义和用法 removeAttr() 方法从被选元素中移除属性。 ### 语法 ``` $(_selector_).removeAttr(_attribute_) ``` | 参数 | 描述 | | --- | --- | | _attribute_ | 必需。规定从指定元素中移除的属性。 |