Javascript debug in Mandarin: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
(Created page with "Javascript 程式碼偵錯 {{LanguageSwitcher | content = English, 漢字 }} == 疑難排解步驟 == * 是否已包含所需的 JavaScript 檔案? * 函式是否與不同的 JavaScript 函式庫發生衝突?例如:[https://stackoverflow.com/questions/41961708/uncaught-typeerror-tooltip-is-not-a-function JavaScript - Uncaught TypeError: $(...).tooltip is not a function - Stack Overflow] * 使用 [https:/...")
 
Tags: Mobile edit Mobile web edit
 
Line 7: Line 7:


* 函式是否與不同的 JavaScript 函式庫發生衝突?例如:[https://stackoverflow.com/questions/41961708/uncaught-typeerror-tooltip-is-not-a-function JavaScript - Uncaught TypeError: $(...).tooltip is not a function - Stack Overflow]
* 函式是否與不同的 JavaScript 函式庫發生衝突?例如:[https://stackoverflow.com/questions/41961708/uncaught-typeerror-tooltip-is-not-a-function JavaScript - Uncaught TypeError: $(...).tooltip is not a function - Stack Overflow]
* 檢查 JavaScript 框架在不同版本之間的語法相容性問題,例如 Bootstrap 3 和 Bootstrap 5 使用的語法並不相同


* 使用 [https://www.jslint.com/ JSLint] 或本文下方其他偵錯工具,檢查拼寫等錯誤、或編譯類型錯誤。
* 使用 [https://www.jslint.com/ JSLint] 或本文下方其他偵錯工具,檢查拼寫等錯誤、或編譯類型錯誤。

Latest revision as of 08:29, 9 December 2025

Javascript 程式碼偵錯

🌐 Switch language: English, 漢字


疑難排解步驟[edit]

  • 是否已包含所需的 JavaScript 檔案?
  • 檢查 JavaScript 框架在不同版本之間的語法相容性問題,例如 Bootstrap 3 和 Bootstrap 5 使用的語法並不相同
  • 使用 JSLint 或本文下方其他偵錯工具,檢查拼寫等錯誤、或編譯類型錯誤。
  • 停用瀏覽器擴充功能,例如:切換至 Chrome 的無痕視窗模式。
  • 關閉瀏覽器輔助軟體,例如:影片下載器。
  • 清除或停用瀏覽器快取。
  • 重新載入網頁。
  • 切換不同的網路環境。

協助偵錯的方法/函數[edit]

顯示訊息

DOM

資料型別

瀏覽器工具

瀏覽器快取問題

工具[edit]

延伸閱讀[edit]

參考資料[edit]


Troubleshooting of ...

Template