Clipboard mode combined with input

document.getElementsByTagName('input')[0].select();
                try{
                    if(document.execCommand('copy'.false, null)){
                        alert('Copy successful, please check the logistics information in the third party. ');
                    } else{// reinitialize Clipboard when IOS is not supported var copyTarget = this.$refs.copyboard;
                        var copyboard = new Clipboard(copyTarget, {
                            text(copyTarget) {
                                return copyTarget.getAttribute('copyData'); }}); copyboard.on('success', () => {
                            alert('Copy successful, please check the logistics information in the third party. ');
                        });
                    }
                } catch(err){
                    alert(err);
                }
Copy the code