Skip to content

Commit

Permalink
Version_0.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
censujiang committed Jun 4, 2024
1 parent c5236cd commit 61389ba
Show file tree
Hide file tree
Showing 66 changed files with 757 additions and 581 deletions.
29 changes: 27 additions & 2 deletions dist/index.aio.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* galanga 0.2.6-fix2 (https://github.com/censujiang/galanga)
* galanga 0.2.7 (https://github.com/censujiang/galanga)
* API https://galanga.censujiang.com/api/
* Copyright 2014-2023 censujiang. All Rights Reserved
* Copyright 2014-2024 censujiang. All Rights Reserved
* Licensed under Apache License 2.0 (https://github.com/censujiang/galanga/blob/master/LICENSE)
*/

Expand Down Expand Up @@ -376,6 +376,31 @@
return false;
}
},
removeQuery(name) {
try {
//首先获取当前url参数
const params = new URLSearchParams(window.location.search);
//删除指定参数
params.delete(name);
//重新设置url参数
window.history.pushState({}, '', `${window.location.pathname}?${params.toString()}`);
return true;
}
catch (e) {
console.log(e);
return false;
}
},
removeHash() {
try {
window.location.hash = '';
return true;
}
catch (e) {
console.log(e);
return false;
}
}
};
//获取上一页的url
function getPreURL() {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.aio.min.js

Large diffs are not rendered by default.

29 changes: 27 additions & 2 deletions dist/index.esm.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* galanga 0.2.6-fix2 (https://github.com/censujiang/galanga)
* galanga 0.2.7 (https://github.com/censujiang/galanga)
* API https://galanga.censujiang.com/api/
* Copyright 2014-2023 censujiang. All Rights Reserved
* Copyright 2014-2024 censujiang. All Rights Reserved
* Licensed under Apache License 2.0 (https://github.com/censujiang/galanga/blob/master/LICENSE)
*/

Expand Down Expand Up @@ -240,6 +240,31 @@ const url = {
return false;
}
},
removeQuery(name) {
try {
//首先获取当前url参数
const params = new URLSearchParams(window.location.search);
//删除指定参数
params.delete(name);
//重新设置url参数
window.history.pushState({}, '', `${window.location.pathname}?${params.toString()}`);
return true;
}
catch (e) {
console.log(e);
return false;
}
},
removeHash() {
try {
window.location.hash = '';
return true;
}
catch (e) {
console.log(e);
return false;
}
}
};
//获取上一页的url
function getPreURL() {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.esm.min.js

Large diffs are not rendered by default.

29 changes: 27 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* galanga 0.2.6-fix2 (https://github.com/censujiang/galanga)
* galanga 0.2.7 (https://github.com/censujiang/galanga)
* API https://galanga.censujiang.com/api/
* Copyright 2014-2023 censujiang. All Rights Reserved
* Copyright 2014-2024 censujiang. All Rights Reserved
* Licensed under Apache License 2.0 (https://github.com/censujiang/galanga/blob/master/LICENSE)
*/

Expand Down Expand Up @@ -242,6 +242,31 @@ const url = {
return false;
}
},
removeQuery(name) {
try {
//首先获取当前url参数
const params = new URLSearchParams(window.location.search);
//删除指定参数
params.delete(name);
//重新设置url参数
window.history.pushState({}, '', `${window.location.pathname}?${params.toString()}`);
return true;
}
catch (e) {
console.log(e);
return false;
}
},
removeHash() {
try {
window.location.hash = '';
return true;
}
catch (e) {
console.log(e);
return false;
}
}
};
//获取上一页的url
function getPreURL() {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/404.html

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions docs/README.html

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/api/array.html

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/api/cookie.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/api/date.html

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/api/device.html

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions docs/api/index.html

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/api/number.html

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/api/object.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/api/other.html

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions docs/api/permission.html

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions docs/api/string.html

Large diffs are not rendered by default.

30 changes: 17 additions & 13 deletions docs/api/url.html

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 61389ba

Please sign in to comment.