23 lines
390 B
Markdown
23 lines
390 B
Markdown
---
|
||
title: Use jQuery to Modify the Entire Page
|
||
localeTitle: 使用jQuery修改整个页面
|
||
---
|
||
## 使用jQuery修改整个页面
|
||
|
||
### 问题解释
|
||
|
||
将`animated`类和`hinge`添加到您的`body`元素中。
|
||
|
||
#### 相关链接:
|
||
|
||
* [.addClass()](https://api.jquery.com/addClass/e)
|
||
|
||
### 解:
|
||
|
||
```javascript
|
||
<script>
|
||
$("body").addClass("animated hinge");
|
||
});
|
||
</script>
|
||
|
||
``` |