在 JS 中document.some_element.contains(other_element)
,需要查找一个元素是否包含在另一个元素中。
如何在 Clojurescript/Hiccup/Reagent 框架中执行此操作?
我努力了:
(js/contains some-element another-element)
(-> js/contains some-element another-element)
(.-contains some-element another-element)
(js/.contains some-element another-element)