Explorar el Código

js复制兼容性bug修复

laiguoran hace 5 años
padre
commit
aad811440e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      public/web/headerOpr.js

+ 1 - 1
public/web/headerOpr.js

@@ -104,7 +104,7 @@ const CommonHeader = (function () {
         input.focus();// input节点获取焦点
         input.setSelectionRange(0, input.value.length);// 选中input框中的所有文字
 
-        var res = document.execCommand('copy', true);// 复制文字并获取结果
+        var res = document.execCommand('copy');// 复制文字并获取结果
 
         currentFocus.focus();// 之前活动节点获得焦点
         document.body.removeChild(input);// 删除添加的input节点