<input type = "text" は読み取り専用= @ = "cloneWe($イベント)" をクリックして "読み取り専用" />
1 cloneWe(イベント){ 2 LET電子=イベント|| (イベント= window.event) 3 せて入力= e.target || e.srcElement 4 input.value = この。$ tの( 'タイトル' ) 5 document.body.appendChild(入力) 6 input.select() 7 input.setSelectionRange(0 、input.value.length) 8 document.execCommand( 'コピー' ) 9 document.body.removeChild(入力) 10 本。$のtoast.show( '复制成功' ) 11 }