0
我需要获取绑定在其自身上的.on事件所调用的处理程序事件中复选框的值。检查处理程序事件中的值复选框
$("#mytweetswitch").on('change',this.checkTweets);
checkTweets: function(){
//here I need to get isChecked of #mytweetswitch
},
我需要获取绑定在其自身上的.on事件所调用的处理程序事件中复选框的值。检查处理程序事件中的值复选框
$("#mytweetswitch").on('change',this.checkTweets);
checkTweets: function(){
//here I need to get isChecked of #mytweetswitch
},
checkTweets: function() {
return $(this).is(':checked');
}
'=器isChecked $(本).prop( '检查');' –
@KingKing我想你不小心碰到了评论按钮,而不是答案按钮:) –
出了什么问题'这一点。 checked'? – undefined