Changing css class in knockout.js on mouse click

前端 未结 3 1509
青春惊慌失措
青春惊慌失措 2021-02-20 01:23

The knockout.js documentation shows the css binding like this:

Profit Information
3条回答
  •  误落风尘
    2021-02-20 01:51

    The simplest way is to use a click binding which changes an observable in the callback. You would bind the class appropriately using something like the attr binding

提交回复
热议问题