copy(e) {//创建一个input框constinput =document.createElement("input");//将指定的DOM节点添加到body的末尾document.body.appendChild(input);//设置input框的value值为直播地址input.setAttribute("value", e);//选取文本域中的内容input.select();//copy的意思是拷贝当前选中内容到剪贴板//document.execCommand...
copy(e) { //创建一个input框 const input = document.createElement("input"); //将指定的DOM节点添加到body的末尾 document.body.appendChild(input); //设置input框的value值为直播地址 input.setAttribute("value", e); //选取文本域中的内容 input.select(); //copy的意思是拷贝当前选中内容到剪贴板 /...