how to pass arguments to listeners in lit-element?
问题 <div @click=${this.click_cb.bind(this, record)}>${record.msg}<div> Is this the correct way to pass an argument to a listener? 回答1: You should also be able to do this <div @click=${() => this.click_cb(record)}>${record.msg}<div> 来源: https://stackoverflow.com/questions/57585862/how-to-pass-arguments-to-listeners-in-lit-element