Note the following code that works:
(defn ^:export displayPlain [id]
(let [h (.getElementById window/document id)
txt (aget h innerText)]
(window/alert (str plain txt))
(aset h innerText here I am!)))
Here, javascript object h is treated as array, and I was able to get and
set
Note the following code that works:
(defn ^:export displayPlain [id]
(let [h (.getElementById window/document id)
txt (aget h innerText)]
(window/alert (str plain txt))
(aset h innerText here I am!)))
Here, javascript object h is treated as array, and I was able to get