refactoring
This commit is contained in:
16
docs/URLSearchParam.js
Normal file
16
docs/URLSearchParam.js
Normal file
@@ -0,0 +1,16 @@
|
||||
class URLSearchParam {
|
||||
|
||||
#name;
|
||||
|
||||
constructor(name) {
|
||||
this.#name = name;
|
||||
}
|
||||
|
||||
get() {
|
||||
return UrlUtils.getSearchParamOfCurrentUrl(this.#name);
|
||||
}
|
||||
|
||||
set(value) {
|
||||
UrlUtils.setSearchParamOfCurrentUrl(this.#name, value);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user