12
<!-- ko if:name == 'Setup' || name == 'Appeals' -->
<button class="btn dropdown-toggle" data-toggle="dropdown"><span class="caret">/span>/button>
<!-- /ko -->
我試圖表明,只有當name屬性包含值「設置」或「上訴」,但它不工作下拉按鈕。如果綁定,我們可以在上面的敲除中使用邏輯運算符嗎利用基因敲除邏輯運算符的條件,如果結合
如果這是在文檔中解釋不知道,好..我的天堂」發現它。但是**真的很重要 – colthreepv
@colthreepv,property''name''是一個可觀察對象,因此它需要在視圖名稱()中作爲函數調用。 –