Skip to content

Commit

Permalink
- Version: 1.1.14 Build 20240315
Browse files Browse the repository at this point in the history
	- 修复数组形式插入顺序错误的bug。
  • Loading branch information
road0001 committed Mar 15, 2024
1 parent 12992f7 commit 4470536
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions VERSION.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# JQuery DOM

- Version: 1.1.14 Build 20240315
- 修复数组形式插入顺序错误的bug。

- Version: 1.1.13 Build 20240314
- 调整jQueryDOM数组形式插入元素的方式,prepend和before倒转数组以确保插入顺序和数组顺序一致。

Expand Down
4 changes: 2 additions & 2 deletions jquery.extensions.dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ if(typeof jQuery===`function`){
let default_children={
tag:undefined,attr:undefined,html:undefined,attachType:`append`
};
if(attach_type==`prepend` || attach_type==`before`){
//往前插入时,将数组调转,以确保插入顺序和数组顺序一致
if(attach_type==`append` || attach_type==`after`){
//往插入时,将数组调转,以确保插入顺序和数组顺序一致
dom_tag.reverse();
}
for(let cur of dom_tag){
Expand Down

0 comments on commit 4470536

Please sign in to comment.