我如何定义2 Not this class
?
1班:
$(document).on( 'click', '.item:not(.is-expanded)', function() {...
2个班级:
$(document).on( 'click', '.item:not(.is-expanded, .secondClass)', function() {
答案 0 :(得分:1)
这应该有效
$(document).on( 'click', '.item:not(.is-expanded):not(.secondClass)', function() {