Javascript Viewer, Beautifier, Mai tsarawa, Edita
Shigar da ɓarna, ƙaranci, ko ɓoyayyen Javascript (JS) cikin filin da ke sama don tsaftace shi kuma ya yi kyau. Editan da ke sama kuma ya ƙunshi lambobin layi masu taimako da nuna alama. Akwai zaɓuɓɓuka da yawa don daidaita ƙawata zuwa abubuwan da kuke tsarawa na sirri.
Yaushe kake amfani da Javascript Viewer, Beautifier da Formatter, Edita
Sau da yawa lokacin rubuta Javascript (JS) shigar ku, tazarar da sauran tsarin na iya zama ɗan rashin tsari. Hakanan ya zama ruwan dare ga masu haɓakawa da yawa suyi aiki akan aiki ɗaya waɗanda ke da dabarun tsarawa daban-daban. Wannan kayan aikin yana taimakawa don daidaita tsarin fayil ɗin. Har ila yau, ya zama ruwan dare ga Javascript (JS) don ragewa ko ɓoyewa. Kuna iya amfani da wannan kayan aikin don sanya waccan lambar ta yi kyau kuma ana iya karantawa don ta sami sauƙin gyarawa.
Misalin Ƙawata Javascript
Karamin Javascript:
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);}
Ya zama wannan ƙawata:
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);
}