如何重构我的代码?
$(document).on "change", '#q_breed_id_eq', ->
window.filter(this)
$(document).on "click", '#q_city_id_eq', ->
window.filter(this)
$(document).on "click", '#q_category_id_eq', ->
window.filter(this)
$(document).on "click", '[name="q[sex_eq]"]', ->
window.filter(this)