TAILIEUCHUNG - Hacking Firefox - part 35

JavaScript đóng cảnh báo trong Console JavaScript. Một cảnh báo thường có nghĩa là bạn đang làm một cái gì đó bất hợp pháp hoặc không tiêu chuẩn trong mã của bạn, và có thể gây ra hành vi bất ngờ hoặc các vấn đề khác. Nó luôn luôn được đề nghị để giải quyết tất cả vấn đề như vậy trước khi phát hành phần mở rộng của bạn | 342 Part VI Creating Extensions and Themes When this preference is set to true Firefox displays JavaScript warnings in the JavaScript Console. A warning usually means that you are doing something illegal or nonstandard in your code and that might cause unexpected behavior or other problems. It is always recommended to solve all such problems before releasing your extension. Enabling this preference causes all the warnings not only those originating in your extension to be reported to the JavaScript Console. Many extensions have warnings in their code and having several such extensions installed while trying to debug your own code might make finding only the relevant warnings difficult. You should set this preference to true if you want to use the dump function to print messages to the standard console. More information on this appears later in this chapter. As with other preference settings you can type about config in your Firefox address bar and use the Preferences window to create new preferences and modify the existing ones. Other methods for setting preferences such as modifying the file will also work. Logging Logging is a simple but very efficient method for debugging your code. Printing the values of your variables the received messages return codes and so on can help you figure out where the problem is and how it can be solved. Logging can also be used to report major events and errors in your application and looking at these messages can help you make sure that the application is actually doing what you expect it to do. There are several logging mechanisms in Mozilla Standard Console You can use the dump function to print messages to the standard console. Similar to the alert function dump expects a single string argument. By default the standard console is disabled in Firefox. To enable it set the value of the preference to true and start Firefox with the .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.