클립보드 복사하기
페이지 정보
본문
<span class="data-copy">복사하기</span>
<input type="hidden" id="data-area" class="data-area" value="">
 
<script>
$('.data-copy').click(function() { 
   $('#data-area').attr('type', 'text');
   $('#data-area').select();
   var copy = document.execCommand('copy');
   $('#data-area').attr('type', 'hidden');
   if(copy) { 
       alert('복사되었습니다');
   }
});
</script>
            추천0                    
                
    댓글목록
등록된 댓글이 없습니다.

