-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DOM操作:原生的 document.querySelector 和 document.querySelectorAll 被 jQuery 的选择器替代,使用 $() 来获取和操作 DOM 元素。 事件绑定:原生 addEventListener 被 jQuery 的 .on() 方法替代,简化了事件绑定。 元素的操作:比如 classList.add、classList.remove 变成了 jQuery 的 .addClass() 和 .removeClass(),style 也使用了 .css() 方法进行简化。 获取数据属性:原生的 getAttribute() 变成了 .data() 方法。
- Loading branch information
1 parent
74a42af
commit 54e76c5
Showing
1 changed file
with
59 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters