File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 233233 - 访问元素
234234 - getElementById() / querySelector()
235235 - getElementsByClassName() / getElementsByTagName() / querySelectorAll()
236- - parentNode / previousSibling / nextSibling / firstChild / lastChild
236+ - parentNode / previousSibling / nextSibling / children / firstChild / lastChild
237237- 操作元素
238238 - nodeValue
239- - innerHTML / textContent / createElement() / createTextNode() / appendChild() / removeChild()
239+ - innerHTML / textContent / createElement() / createTextNode() / appendChild() / insertBefore() / removeChild()
240240 - className / id / hasAttribute() / getAttribute() / setAttribute() / removeAttribute()
241241- 事件处理
242242 - 事件类型
286286- 从CDN加载jQuery
287287
288288``` HTML
289-
290289<script src =" https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js" ></script >
291290<script >
292291 window .jQuery ||
335334#### 检测页面是否可用
336335
337336``` HTML
338-
339337<script >
340338 $ (document ).ready (function () {
341339
344342```
345343
346344``` HTML
347-
348345<script >
349346 $ (function () {
350347
364361先引入其他库再引入jQuery的情况。
365362
366363``` HTML
367-
368364<script src =" other.js" ></script >
369365<script src =" jquery.js" ></script >
370366<script >
You can’t perform that action at this time.
0 commit comments