Click Copy, ios-Safari compatible
let oInput = document.createElement("input");
oInput.value = "recheyouping";
oInput.readOnly="readOnly"; document.body.appendChild(oInput); oInput.select(); // Select the object oinput.setSelectionRange (0, 20); Document. execCommand(execCommand)"Copy"); // Run the browser copy command oinput.classname ="oInput";
oInput.style.display = "none";
this.$message.show({
msg: "Copy successful!"
});
Copy the code