fix(guide): simplify directory structure

This commit is contained in:
Mrugesh Mohapatra
2018-10-16 21:26:13 +05:30
parent f989c28c52
commit da0df12ab7
35752 changed files with 0 additions and 317652 deletions

View File

@@ -0,0 +1,40 @@
---
title: HTML Method
localeTitle: HTML方法
---
# HTML方法
Jquery `.html()`方法获取HTML元素的内容或设置HTML元素的内容。
## 入门
要返回HTML元素的内容请使用以下语法
```javascript
$('selector').html();
```
例如:
```javascript
$('#example').html();
```
## 设置
要设置HTML元素的内容请使用以下语法
```javascript
$('selector').html(content);
```
例如:
```javascript
$('p').html('Hello World!');
```
这会将所有`<p>`元素的内容设置为Hello World
### 更多信息