js实现复制按钮




    http-equiv="Content-Type" content="text/html; charset=gb2312"/>
    </span><span style="color:#a9b7c6;">Js实现</span><span style="color:rgb(169,183,198);font-family:'宋体';">复制的代码</span><span style="color:rgb(232,191,106);">



id="res" value="要复制的值">

type="button" onClick="copy()" value="点击复制代码" />



你可能感兴趣的:(Js)