Changing css class in knockout.js on mouse click

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

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

Profit Information
3条回答
  •  孤街浪徒
    2021-02-20 01:32

    Have your click function change an observable variable. For example:

    Profit Information

    Note: You can combine click and css on the same element. For example:

提交回复
热议问题