Developer เครื่องมือได้รับการอัปเดตแล้ว 5 วันที่แล้ว

Free JavaScript (JS) Formatter Online

Format your messy JavaScript (JS) source code to make it easier and faster to read and understand.

JS Formatter Beautify JS Readable Code Online Formatter

ใช้ Free JavaScript (JS) Formatter Online

วาง URL ของไฟล์โค้ดโดยตรงเพื่อโหลดเนื้อหาของไฟล์นั้นเข้าสู่ตัวแก้ไข

ผลลัพธ์

เสร็จแล้ว
ลิงก์เครื่องมือ
คัดลอกไปยังคลิปบอร์ดแล้ว
ช่วยปรับปรุงเครื่องมือนี้
62
เวลาที่ใช้
63
จำนวนผู้ใช้ทั้งหมด
5+ ปี
เสิร์ฟ
ตรวจสอบครั้งสุดท้ายเมื่อ 5 วันที่แล้ว. ตัวเลขการใช้งานจะได้รับการอัปเดตระหว่างการตรวจสอบตามช่วงเวลาที่กำหนด (เริ่มรายงานตั้งแต่ 21 Feb 2022)
รายงานความไม่ตรงกัน

อ่านเนื้อหา

เรียนรู้วิธีการทำงานของเครื่องมือนี้และเมื่อใดควรใช้มัน

Any fool can write code that a computer can understand. Good programmers write code that humans can understand.” — Martin Fowler

What is Beautifying?

Beautifying or formatting source code is to reformation of source code to improve code readability, based on an analysis of the syntax for a human for some user-defined conventions like re-indenting codes lines, splitting the code into lines, creating blocks, adding white spaces at required places to make it easier and faster to read and understand.

    Difference of Formatted JS and Minified or non Beautified JS

Non Formatted JS:

function loadData(parameter){$.get('https://www.google.com',function(data){console.log(data)
showData(data)});}
function showData(data){document.getElementById("set_data").innerHTML=data;}
window.onload=function(){console.log('page loaded')}
alert("Testing functionalities");

Beautified JS:

    function loadData(parameter){
        $.get('https://www.google.com', function(data) {
            console.log(data)
            showData(data)
        });
    }
    function showData (data) {
        // body... 
        document.getElementById("set_data").innerHTML = data;
    }
    window.onload = function(){
        console.log('page loaded')
    }
    alert("Testing functionalities");

How to use this JS Formatter 

You can format your JS code by using this tool. This JS Formatter tool is very simple to use. To Beautify JS just put the targeted webpage URL or paste JS code and click Beautify Button. Booom, your Formatted code is ready for use. Now you can copy your code or download it.

ความคิดเห็น (0)

เพื่อการอภิปรายของผู้ใช้ กรณีพิเศษ และคำแนะนำเพิ่มเติม
แสดงความคิดเห็น
ความคิดเห็นของคุณจะปรากฏให้ทุกคนเห็นได้หลังจากส่งไปแล้ว
ยังไม่มีความคิดเห็นใดเลย เป็นคนแรกที่แสดงความคิดเห็น!
แจ้งให้เราทราบ!
แจ้งปัญหาเกี่ยวกับเครื่องมือนี้

โปรดอธิบายปัญหาที่คุณพบ เพื่อให้เราสามารถตรวจสอบและปรับปรุงเครื่องมือได้

สิ่งที่มีประโยชน์ที่สุดคืออะไร
โปรดระบุข้อมูลที่ป้อน ผลลัพธ์ที่คาดไว้ ผลลัพธ์จริง เบราว์เซอร์/อุปกรณ์ และภาพหน้าจอหากมีประโยชน์
ปุ่มจับภาพหน้าจอจะจับภาพหน้าเว็บในเบราว์เซอร์และแนบภาพที่สร้างขึ้นไปยังแบบฟอร์มนี้
ภาพหน้าจอเต็มหน้า
บันทึกไว้ในเบราว์เซอร์ของคุณด้วย newisty.
ยังไม่มีภาพหน้าจอที่บันทึกไว้
เครื่องมือ รายงาน