Các bước để bật giao diện debug: ấn F12 => chọn console
sử dụng console.log(); để hiển thị lên giao diện console
sử dụng từ khóa debugger để đặt breakpoint
Với các trình duyệt cụ thể
Chrome và IE: Tool => developer tool => vào tab console
Firefox: cài firebug
No comments:
Post a Comment