refactor(Util): convert methods to static for better accessibility and usage

This commit is contained in:
Cell
2026-03-06 10:46:47 +08:00
parent 423a7ddbf7
commit 98a82d845a
4 changed files with 63 additions and 65 deletions
+2 -2
View File
@@ -120,7 +120,7 @@ FixIt/
```javascript
// 使用 ES6 类
export default class Util {
copyText(text) {
static copyText(text) {
// ...
}
}
@@ -129,7 +129,7 @@ export default class Util {
class FixIt {
constructor() {
this.config = window.config
this.util = new Util()
this.scrollTop = Util.getScrollTop()
}
init() {