<DIV>
<P>邀请码</ P>
//
<P ID = "inviteCode"クラス= "inviteCode"> {{invite_code}} </ P>
<入力ID = "inviteCode"クラス= "inviteCode"タイプ= "テキスト" />
<Pクラス= "コピー">复制</ P>
</ div>
コピー(){
VAR URL2 = this.invite_code。
// VAR oInput =のdocument.createElement( "入力");
VAR oInput =のdocument.getElementById( "inviteCode");
//oInput.value = URL2。
// document.body.appendChild(oInput)。
oInput.select(); //オブジェクトを選択します
//document.execCommand("Cut","false",null);//ブラウザカットコマンド実行
document.execCommand(「コピー」); //コピーコマンド実行ブラウザ
//oInput.className = "oInput"。
//oInput.style.display = "なし";
警告(「コピー成功」);
//console.log(document.execCommand("Copy "))
}、