📅  最后修改于: 2022-03-11 15:02:07.395000             🧑  作者: Mango
//U need to have a button with the id the same as its name because it is going to be sent to the clipborad.
/*Like this: */
function SelfCopy(copyText)
{
navigator.clipboard.writeText(copyText);
alert("You just copied this: (" + copyText + ").");
}