在Jquery中通过attr()方法设置元素的属性后,使用removeAttr()方法可以将元素的属性删除。 语法格式为:removeAttr(name) removeAttr(“onmouseout”); removeAttr(“onmouseover”); 也可以删除自定义属性 removeAttr(“data-id”);
« css3 animation 制作闪烁的箭头
wordpress文章自动同步新浪微博 »
要发表评论,您必须先登录。
0 条评论。