2
我正试图将列表程序挂钩到单选按钮更改。但由于某些原因,我不能得到这个工作:主干单选按钮更改事件
我得到了什么是thsi:
HTML:
<input type="radio" name="hat" value="1">
<input type="radio" name="hat" value="2">
<input type="radio" name="hat" value="3">
我尝试在我看来是这样的渲染方法来设置制表了:
this.listenTo(this, 'change input[type=radio]', this.changedRadio);
但是调整单选按钮不会导致调用“changedRadio”beeing。
相反,我得到这个在控制台:
Unable to get property 'controlMap' of undefined or null reference