|
@@ -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节点
|