Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
愚蠢的问题:如何在 Clojurescript 中进行 Javascript 赋值?我正在使用 Javascript 库,需要设置对象字段的值,例如obj.this=that;- 我不知道 Javascript,所以也许有一个 .set 方法?
obj.this=that;
尝试一些类似的东西
(set! (.-property foo) 5)
采用
(aset foo "property" 5)
请注意,符号引用可能会失败。