最佳答案
我试图显示一些基于 $index的值的标记,我可以显示这个值,但是我似乎不能使用它与 if绑定,什么是最好的方法在这里?
<!-- ko if: $index===0 -->
<div>some mark up here</div>
<!-- /ko -->