Skip to content

Commit 85c4921

Browse files
authored
📄 setValue的行為差異寫進文檔 (#19)
1 parent 5034edd commit 85c4921

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/dev/api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,8 @@ const v = GM_getValue("foo", 0);
281281
GM_deleteValue("foo");
282282
```
283283

284+
#### 注意:当使用 `GM_setValue` 传入 `undefined` 时,ScriptCat 会将该键删除,而不会像油猴(Tampermonkey/GreaseMonkey)那样将 `undefined` 存储为值。
285+
284286
### GM_listValues
285287

286288
列出所有 key。

0 commit comments

Comments
 (0)