How can I make conditional binding in knockout.js?

前端 未结 2 2005
野性不改
野性不改 2020-12-31 07:36

I tried this one :

But it does not work :

2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-31 07:57

    Following worked for me, i was using both css and id attributes, for me it did't work if css attribute is not the first one , so keep css attribute as your fist one.

    ... ... ...

提交回复
热议问题