更新了前端文档

pull/19/merge
jackfrued 2018-10-01 06:55:28 +08:00
parent 6294eac0ec
commit c3a9b74b65
1 changed files with 2 additions and 6 deletions

View File

@ -233,10 +233,10 @@
- 访问元素 - 访问元素
- getElementById() / querySelector() - getElementById() / querySelector()
- getElementsByClassName() / getElementsByTagName() / querySelectorAll() - getElementsByClassName() / getElementsByTagName() / querySelectorAll()
- parentNode / previousSibling / nextSibling / firstChild / lastChild - parentNode / previousSibling / nextSibling / children / firstChild / lastChild
- 操作元素 - 操作元素
- nodeValue - nodeValue
- innerHTML / textContent / createElement() / createTextNode() / appendChild() / removeChild() - innerHTML / textContent / createElement() / createTextNode() / appendChild() / insertBefore() / removeChild()
- className / id / hasAttribute() / getAttribute() / setAttribute() / removeAttribute() - className / id / hasAttribute() / getAttribute() / setAttribute() / removeAttribute()
- 事件处理 - 事件处理
- 事件类型 - 事件类型
@ -286,7 +286,6 @@
- 从CDN加载jQuery - 从CDN加载jQuery
```HTML ```HTML
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script> <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script> <script>
window.jQuery || window.jQuery ||
@ -335,7 +334,6 @@
#### 检测页面是否可用 #### 检测页面是否可用
```HTML ```HTML
<script> <script>
$(document).ready(function() { $(document).ready(function() {
@ -344,7 +342,6 @@
``` ```
```HTML ```HTML
<script> <script>
$(function() { $(function() {
@ -364,7 +361,6 @@
先引入其他库再引入jQuery的情况。 先引入其他库再引入jQuery的情况。
```HTML ```HTML
<script src="other.js"></script> <script src="other.js"></script>
<script src="jquery.js"></script> <script src="jquery.js"></script>
<script> <script>