jQuery.fn.copy = function(){

var clipBoardContent="";
if($(this).attr("href").length){
	clipBoardContent=$(this).attr("href");
}else if($(this).val().length){
	clipBoardContent=$(this).val();
}else if($(this).text().length){
	clipBoardContent=$(this).text();
}


if($.support.leadingWhitespace){
	alert("请手工复制");
}else{
	window.clipboardData.setData("Text",clipBoardContent);
	alert("已经复制成功，可以粘贴");
}

};