<style>
.layui-table-cell {
height: auto;
overflow: auto;
text-overflow: initial;
white-space: normal;
}
</style>
去掉按钮的下边距
.layui-table .layui-btn-container .layui-btn {
margin-bottom: 0;
}
<style>
.layui-table-cell {
height: auto;
overflow: auto;
text-overflow: initial;
white-space: normal;
}
</style>
去掉按钮的下边距
.layui-table .layui-btn-container .layui-btn {
margin-bottom: 0;
}
queue:listen 是热加载,效率低,修改job类后会生效
queue:work 不会热加载,效率高,修改job类后需要重启才能生效
https://developer.mozilla.org/zh-CN/docs/Web/API/Clipboard/writeText
function copyText(text) {
if (navigator.clipboard) {
navigator.clipboard.writeText(text).then(
function () {
/* clipboard successfully set */
},
function () {
/* clipboard write failed */
},
);
} else {
let oInput = document.createElement('input');
oInput.value = text;
document.body.appendChild(oInput);
oInput.select();
document.execCommand("Copy");
oInput.className = 'oInput';
oInput.style.display = 'none';
}
}
function oCopy(text) {
copyText(text)
layer.msg('复制成功!')
}