Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
<div @click=${this.click_cb.bind(this, record)}>${record.msg}<div>
这是将参数传递给侦听器的正确方法吗?
你也应该能够做到这一点
<div @click=${() => this.click_cb(record)}>${record.msg}<div>