示例如何在綁定可見時執行javascript函數:true表示BooleanIndicator()已返回true,假定被調用的函數具有e作爲參數,其中e是事件。如何在可見性綁定爲真時調用函數?
<div data-bind="visible: shouldShowMessage">
You will see this message only when "shouldShowMessage" holds a true value.
</div>
<div >
Also show this div when the above div is visble
<div>
'數據bind'是什麼框架? – epascarello
@epascarello是一個jQuery淘汰賽結合 – Wicky
@Wicky那麼,爲什麼不讓它'computed'功能或有'subscribe'功能 – Rajesh