[英]The document.execCommand() method is not working on safari in Iphone
I'm doing copy text when click on the button to copy the text from the text field. 我在单击按钮时复制文本,从文本字段中复制文本。 But not working on safari in Iphone This is my function 但是没有在Iphone上进行safari这是我的功能
function myFunction() {
var copyText = document.getElementById("myInput");
copyText.select();
document.execCommand("copy");
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.