[JavaScript] 클립보드 복사

// $textarea const myTextarea = document.querySelector(".view"); // button 클릭 이벤트 document.querySelector("#btn_copy").onclick = () => { // textarea의 내용을 복사한다. var replace_txt = myTextarea.innerText.replace(/(사주운세홈 바로가기|나의 운세 복사하기|사주풀이 보러가기)/gi,""); window.navigator.clipboard.writeText(replace_txt).then(() => {…

0 Comments

End of content

No more pages to load