Asignación de interop de Javascript en Clojurescript


Pregunta tonta: ¿cómo hago la asignación de Javascript en Clojurescript ? Estoy usando una lib de Javascript y necesito establecer el valor del campo de un objeto como obj.this=that; - No conozco Javascript, así que tal vez hay un .¿establecer método ?

Author: Hendekagon, 2011-09-28

2 answers

Intenta algo como

(set! (.-property foo) 5)
 44
Author: dnolen,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-12-27 19:10:54

Use

(aset foo "property" 5)

Tenga en cuenta que las referencias simbólicas pueden fallar.

 9
Author: freeduck,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-10-21 21:34:22