1 var clipboardData = window.clipboardData; //for IE 2 if (!clipboardData) { // for chrome 3 window.prompt("按下Ctrl+C复制", adress); 4 }else{ 5 clipboardData.setData(‘Text‘, adress); 6 eventBusService.publish(controllerName,‘appPart.load.modal.alert‘, {"title":"操作提示","content":"复制成功!"}); //弹出提示框 7 }
时间: 2024-10-09 20:51:04