remove

UK [r??muv]

vt. ??, ??

vi. ??, ??; attr

English['?tr] American['?tr]

abbr.attractive ????, ????

jquery ??Attr() ??? ???

??: removeAttr() ???? ??? ???? ??? ?????.

??: ??$(selector).removeAttr(??)

????:

???? Description
?? ?? . ??? ???? ??? ??? ?????.

jquery ??Attr() ??? ?

<html>
<head>
<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $("button").click(function(){
    $("p").removeAttr("style");
  });
});
</script>
</head>

<body>
<h1>這是一個(gè)標(biāo)題</h1>
<p style="font-size:120%;color:red">這是一個(gè)段落。</p>
<p>這是另一個(gè)段落。</p>
<button>刪除所有 p 元素的 style 屬性</button>
</body>
</html>
???? ?? ?

??? ????? ??? "???? ??" ??? ?????