-
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.
buildUI 方法:将生成 HTML 结构的部分提取到 buildUI 方法中,使代码更易于理解和扩展。 bindEvents 方法:将事件绑定部分提取到 bindEvents 方法中,避免重复代码。 表情包初始化:通过 setInitialTab 方法明确默认选中第一个表情包。 优化事件委托:在 .OwO-body 上委托 click 事件,减少对每个表情项的事件绑定。 代码组织:优化了代码结构,便于扩展和维护。
- Loading branch information
1 parent
b829c83
commit 34426d1
Showing
1 changed file
with
49 additions
and
25 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