Javascript Escape Unescape għodda jgħinek biex jaħarbu u Unescape Javascript string meta inti tixtieq output l-Javascript direttament mhux interpretat mill-browser.
Kif taħrab/Unescape Javascript?
- Biex taħrab/Unescape id-dejta tal-Javascript tiegħek żid/kopja u waħħal id-dejta tal-Javascript fl-input.
- Tista' wkoll tagħbija d-dejta Javascript mill-url billi tikklikkja l-buttuna jew tagħbija d-dejta Javascript mill-kompjuter billi tikklikkja l-buttuna.
- Ikklikkja l-buttuna 'Escape' jew 'Unescape' biex tipproċessa d-data.
- Ladarba ssir il-konverżjoni tista 'tniżżel il-fajl billi tikklikkja l-buttuna.
Dejta tal-Input
function download(content, fileName, mimeType) {
var a = document.createElement('a');
mimeType = mimeType || 'application/octet-stream';
if (navigator.msSaveBlob) { // IE10
navigator.msSaveBlob(new Blob([content], {
type: mimeType
}), fileName);
} else {
location.href = 'data:application/octet-stream,' + encodeURIComponent(content);
}
}
Wara l-Ħarba
function download(content, fileName, mimeType) {\r\n var a = document.createElement(\'a\');\r\n mimeType = mimeType || \'application/octet-stream\';\r\n\r\n if (navigator.msSaveBlob) { // IE10\r\n navigator.msSaveBlob(new Blob([content], {\r\n type: mimeType\r\n }), fileName);\r\n } else {\r\n location.href = \'data:application/octet-stream,\' + encodeURIComponent(content);\r\n }\r\n}