有人能解释一下为什么当我点击“禁用事物”单选按钮时它可以工作(前两个单选按钮被禁用)但是当我点击“启用事物”时什么也没发生?
JsFiddle:http: //jsfiddle.net/LkqTU/8822/
CMR convention: <input type="radio" name="cmrConvention" value="true" data- bind="checkedRadioToBool: cmrConvention, disable: thirdPartyInsured() ? true : false">
<br/>
Out of CMR convention: <input type="radio" name="cmrConvention" value="false" data-bind="checkedRadioToBool: cmrConvention, disable: thirdPartyInsured() ? true : false">
<br/>
- - - - - -
<br/>
Enable things: <input type="radio" name="thirdParty" value="false" data-bind="checkedRadioToBool: thirdPartyInsured">
<br/>
Disable things: <input type="radio" name="thirdParty" value="true" data-bind="checkedRadioToBool: thirdPartyInsured">
谢谢。