代码调试

This commit is contained in:
BianLzhaoMin 2025-02-25 14:03:21 +08:00
parent dc6cd91c50
commit 4209775850
1 changed files with 3 additions and 1 deletions

View File

@ -202,13 +202,15 @@
let customElement = $('<button>', {
class: 'layui-btn layui-btn-sm',
id: 'evaluate-btn',
text: '评价'
text: '评价',
type: 'button'
});
// 将自定义元素插入到最后一个单元格
div.append(customElement);
customElement.on('click', function (event) {
event.stopPropagation(); // 阻止事件冒泡
event.preventDefault()
console.log('按钮被点击了');
// 在这里添加按钮点击后的逻辑
});