点击复制文本框内的内容:
<textarea name="text" id="text">111222</textarea>
<button onclick="myCopy()">点击复制文本框内的内容</button>
<script>
function myCopy(){
var ele = document.getElementById("text");
ele.select();
document.execCommand("Copy");
}
</script>