如何向我的 IF 添加多个条件?我尝试了这样的事情:
$('#ok').click(function(){
if($('#accept-check:checked').length == 1 && #owner.length > 4 && #number.length == 8 ){
$('#open-box').removeAttr('disabled');
$('#open-box').attr('onclick','javascript:yourFunctionName();');
}
else{
$('#open-box').removeAttr('onclick');
$('#open-box').attr('disabled','disabled');
}
});