当按下“复制URL”按钮后,我该如何复制它所包含的内容?
function cdwUrlsMDBE() {
var prd = document.getElementById("prd");
if (prd.checked == true) {
Swal.fire({
type: 'success',
html: 'i am a text that should be copy',
width: 'auto',
confirmButtonText: 'Copy URLs',
})
谢谢
onClose
https://sweetalert2.github.io/#configuration,然后像这篇博客中的示例函数一样添加一些内容 https://hackernoon.com/copying-text-to-clipboard-with-javascript-df4d4988697f。 - Clay