Kitazamaji cha Javascript, Kirembo, Muundo, Mhariri
Ingiza Javascript (JS) yako iliyochafuka, iliyosafishwa au iliyofichwa kwenye sehemu iliyo hapo juu ili isafishwe na iwe nzuri. Kihariri hapo juu pia kina nambari za laini na uangaziaji wa sintaksia. Kuna chaguo nyingi za kurekebisha kipambo kulingana na ladha zako za uumbizaji wa kibinafsi.
Ni lini unatumia Javascript Viewer, Beautifier na Formatter, Editor
Mara nyingi unapoandika Javascript (JS) ujongezaji wako, nafasi, na uumbizaji mwingine unaweza kuharibika kidogo. Pia ni kawaida kwa watengenezaji wengi kufanya kazi kwenye mradi mmoja ambao wana mbinu tofauti za uumbizaji. Zana hii ni muhimu kwa kufanya uumbizaji wa faili ufanane. Pia ni kawaida kwa Javascript (JS) kufupishwa au kufutiliwa mbali. Unaweza kutumia zana hii kufanya msimbo huo uonekane mzuri na unasomeka ili iwe rahisi kuhariri.
Javascript Beautifier Mfano
Javascript ndogo:
var a=document.createElement('a');mimeType=mimeType||'application/octet-stream';if(navigator.msSaveBlob){navigator.msSaveBlob(new Blob([content],{type:mimeType}),fileName);}else if(URL&&'download'in a){a.href=URL.createObjectURL(new Blob([content],{type:mimeType}));a.setAttribute('download',fileName);document.body.appendChild(a);a.click();document.body.removeChild(a);}else{location.href='data:application/octet-stream,'+encodeURIComponent(content);}
Inakuwa hii nzuri:
var a = document.createElement('a');
mimeType = mimeType || 'application/octet-stream';
if (navigator.msSaveBlob) {
navigator.msSaveBlob(new Blob([content], {
type: mimeType
}), fileName);
} else if (URL && 'download' in a) {
a.href = URL.createObjectURL(new Blob([content], {
type: mimeType
}));
a.setAttribute('download', fileName);
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
} else {
location.href = 'data:application/octet-stream,' + encodeURIComponent(content);
}