clojure - clojurescript (js* "c=1") does not work -
this has been bugging me while. @ repl can type:
clojurescript:cljs.user> (js* "window") ==> #<[object domwindow]> clojurescript:cljs.user> (js* "window.a=1") ==> 1 clojurescript:cljs.user> (js* "window.a") ==> 1 but if type:
clojurescript:cljs.user> (js* "c=1") ==> 1 clojurescript:cljs.user> (js* "c") => ; expect 1 returns nothing why case?
js* implementation detail, shouldn't using @ all.
Comments
Post a Comment