This commit is contained in:
陈国伟 2021-11-06 09:38:38 +08:00
parent 5adb329655
commit ba88a5b01d

View File

@ -79,9 +79,9 @@
for (var i = 0; i < codes.length; i++) {
var code = codes[i];
code.setAttribute('title', '点击复制');
code.addEventListener("click", function () {
code.onclick = function () {
window.clipboardData.setData("Text", this.outerText);
});
}
}
</script>
</body>