Red de conocimiento informático - Computadora portátil - página web de cocoscreator, cópiela en el portapapeles y llámela directamente, ts ignorará el error informado

página web de cocoscreator, cópiela en el portapapeles y llámela directamente, ts ignorará el error informado

/**

?

/**

?Copiar cadena de página web

?*/**

public?static?webCopyString(str,errFunc:Function,successFunc:Function)?{

var?input?=?str;

const?el?=?document. createElement('textarea');

el.value?=?input;

el.setAttribute(' readonly',?'');

el .style.contain?=?strict';

el.setAttribute(' readonly',? estricto';

el.style.position?=? absolut';

el.style.left?=?-9999px';

el.style.fontSize?=?12pt';?//Evitar el escalado en iOS

selección constante = getSelection();

var originalRange = false;

if(selection.rangeCount >?0)?{

originalRange?=?selection.getRangeAt ( 0);

}

document.body.appendChild(el);

el.select();

el. ?=?0;

el.selectionEnd?=?input.length;

var?{

errFunc(err);

console.error(err);

}

document.body.removeChild(el);

if(originalRange)?{

selección.removeAllRanges();

selección.addRange(originalRange);

}

SuccessFunc();

retorno?