Clojure defpartial返回对象而不是HTML字符串

Clojure defpartial返回对象而不是HTML字符串,clojure,clojurescript,Clojure,Clojurescript,我正在使用Chris Ganger的板条箱库在客户端生成html (defpartial html [] form) (def form [:div.form-horizontal [:fieldset [:legend "Student Registeration"] [:div.control-group [:label.control-label "Hello World"]]]) 当我在clojurescript repl(html)中执行上述函

我正在使用Chris Ganger的板条箱库在客户端生成html

(defpartial html [] form)

(def form 
  [:div.form-horizontal
   [:fieldset
    [:legend "Student Registeration"]
    [:div.control-group
     [:label.control-label "Hello World"]]])
当我在clojurescript repl
(html)
中执行上述函数时,我得到了

但是,当我将其作为
(.log js/console(html))
执行时,正确生成的html会记录到浏览器的控制台中

如何让它返回HTML字符串而不是对象

谢谢,
Murtaza

该对象是DIV元素的Dom元素对象。您可以使用此DOM元素的“outerHTML”属性来获取其字符串表示形式。

谢谢Ankur!!还有一种方法可以在repl中检查其属性吗?或者如何打印DOM对象的所有属性?我想您可以在DOM元素上使用所有典型的DOM API方法,如
getAttributes