0
当鼠标移动到一个.thumb
元素,我想改变#full-image
的src
到.thumb
元素的src
。我有什么不工作:
(defaction change-src [selector src]
[selector] (ef/set-attr :src src))
(defaction thumb-hover []
[".thumb"] (events/listen :mouseenter
#(change-src "#full-image"
; Looks like the following needs to be replaced
; with some $(this).attr('src') equivalent.
(ef/from % (ef/get-attr :src)))))
任何人都可以点我的地方,我可以用this
? Enfocus
是建立在它是建立在其上建在平原js
closure
库domina
。我不知道我应该寻找this
哪一层或者如果是连惯用的解决方案。