首页javascriptclassjQuery Style - 如何从body标记中删除类

jQuery Style - 如何从body标记中删除类

我们想知道如何从body标记中删除类。

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.7.1.js'></script>
<script type='text/javascript'>//<![CDATA[ 
$(window).load(function(){
    $("body").removeClass("page");
});//]]>  
</script>
</head>
<body class="page otherattr">
</body>
</html>