如何在本地存储中设置和获取向量?

How to set and get a vector in local storage?

执行此操作的惯用 Clojure 方法是什么。在 js 中,我们可以使用 json 将数组字符串化,然后将其保存在本地存储中,但我不确定在 clojure 中理想的解决方案是什么。

请参阅 Clojure CheatSheet. It can be found through this list of documentation sources 中的 spitslurp

我假设你指的是浏览器本地存储。

您可以将 Clojure 值作为 EDN 字符串(反)序列化。