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.
每当我禁用初始化时,DataTable() 都会删除 @click="editUser(user)" 我让它工作。但是,一旦表格呈现,我就无法添加@click事件。我也试过v-on:click
@click
v-on:click
<button type="button" class="btn btn-warning btn-icon" @click="onClick(user)"><i class="la la-edit"></i></button>