适用于存储的 removeItem 方法

removeItem(
  key: string
): void;

如果存在带有给定键的键值对,则移除该键值对。

示例

GameSnacks.storage.removeItem('starsEarned');