Binding true / false to radio buttons in Knockout JS

后端 未结 8 2312
悲哀的现实
悲哀的现实 2020-11-30 22:09

In my view model I have a IsMale value that has the value true or false.

In my UI I wish to bind it to the following radio buttons:

8条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-30 22:17

    Why not simply true and false instead of 1 and 0?

      
     
    

提交回复
热议问题