var oInput = document.createElement('input'); oInput.value = data.keyword;//要复制的value值 document.body.appendChild(oInput); oInput.select(); document.execCommand("Copy"); oInput.className = 'oInput'; oInput.style.display = 'none'; layer.msg("复制成功!");
直接上代码记录了哈哈
0条评论