我有这个功能:
function Any(){
this.b1 = $("#but1")
this.b2 = $('<div id="but2" />')
this.func = function(){
alert('hello')
}
this.b1.on('click',function(){
this.func()
})
this.b2.on('click',function(){
this.func()
})
}
我想做这样的事情:
(this.b1, this.b2).on('click',this.close)