试图在点击事件中获取对象。我在这里做错了什么?this.section 是每个按钮的索引。
this.ebutton = jQuery('.episode_button');
this.button = this.ebutton.eq(this.section);
this.listtext = 'testbutton';
this.button.parobj = this;
this.button.bind('click', function() {
alert(this.parobj.listtext());
});
如何在按钮事件中获取属性 listtext?