1
버튼에서 zclip을 제거하는 방법이 필요합니다. 동적으로로드되었으므로로드 할 때마다 zlip의 다른 인스턴스가 추가되어 여러 번 복사됩니다.클립 보드에 복사 한 후 zclip을 제거하는 방법은 무엇입니까?
나는 그러나 사용 설명서에 따라 운 ('제거하지') zclip 시도 : '! 복사'내가이 단어를 복사 할 텍스트 위로 상자를 겹쳐 볼 수
function zclipMe(){
$('#copySearch').zclip({
path: 'http://www.steamdev.com/zclip/js/ZeroClipboard.swf',
copy: function() {
return $(this).prev('.cvl0').text();
},
afterCopy: function(){
var theText = $(this).prev('.cvl0');
var thePosition = $(this).prev('.cvl0').position();
$('.copied').text('Copied!').fadeIn(150).delay(1200).fadeOut(200).css({'top': thePosition.top , 'left': thePosition.left , 'width': theText.width()+30 , 'height': theText.height()+30 , 'line-height': theText.height()+ 30 +'px'});
$(this).zclip('remove');
}
});
}
을 in이 성공적으로 복사되었음을 보여주고 내 동적 버튼이로드 된 횟수에 따라 여러 번 실행됩니다.
감사합니다.