File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 233
233
- 访问元素
234
234
- getElementById() / querySelector()
235
235
- getElementsByClassName() / getElementsByTagName() / querySelectorAll()
236
- - parentNode / previousSibling / nextSibling / firstChild / lastChild
236
+ - parentNode / previousSibling / nextSibling / children / firstChild / lastChild
237
237
- 操作元素
238
238
- nodeValue
239
- - innerHTML / textContent / createElement() / createTextNode() / appendChild() / removeChild()
239
+ - innerHTML / textContent / createElement() / createTextNode() / appendChild() / insertBefore() / removeChild()
240
240
- className / id / hasAttribute() / getAttribute() / setAttribute() / removeAttribute()
241
241
- 事件处理
242
242
- 事件类型
286
286
- 从CDN加载jQuery
287
287
288
288
``` HTML
289
-
290
289
<script src =" https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js" ></script >
291
290
<script >
292
291
window .jQuery ||
335
334
#### 检测页面是否可用
336
335
337
336
``` HTML
338
-
339
337
<script >
340
338
$ (document ).ready (function () {
341
339
344
342
```
345
343
346
344
``` HTML
347
-
348
345
<script >
349
346
$ (function () {
350
347
364
361
先引入其他库再引入jQuery的情况。
365
362
366
363
``` HTML
367
-
368
364
<script src =" other.js" ></script >
369
365
<script src =" jquery.js" ></script >
370
366
<script >
You can’t perform that action at this time.
0 commit comments