[英]Javascript interop assignment in Clojurescript
Dumb question: how do I do Javascript assignment in Clojurescript ? 愚蠢的问题:如何在Clojurescript中进行Javascript分配? I'm using a Javascript lib and need to set the value of an object's field like
obj.this=that;
我正在使用Javascript lib,需要设置对象字段的值,如
obj.this=that;
- I don't know Javascript so maybe there's a .set method ? - 我不知道Javascript所以也许有.set方法?
尝试一些类似的事情
(set! (.-property foo) 5)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.