标签:.exe banner create end inner document append var copy
<div cols="20" id="biao1" style="display: none;">{$banner.title}</div>
function copyUrl2() { var Url2=document.getElementById("biao1").innerText; var oInput = document.createElement(‘input‘); oInput.value = Url2; document.body.appendChild(oInput); oInput.select(); // 选择对象 document.execCommand("Copy"); // 执行浏览器复制命令 oInput.className = ‘oInput‘; oInput.style.display=‘none‘; alert(‘复制成功‘); }
标签:.exe banner create end inner document append var copy
原文地址:https://www.cnblogs.com/supe/p/10819947.html