Javascript debug: Difference between revisions

Jump to navigation Jump to search
291 bytes added ,  12 November 2020
m
Line 3: Line 3:


== Steps of troubleshooting ==
== Steps of troubleshooting ==
* Were the required js fils were included?
* Was the function was conflict with different js libraries? e.g. [https://stackoverflow.com/questions/41961708/uncaught-typeerror-tooltip-is-not-a-function javascript - Uncaught TypeError: $(...).tooltip is not a function - Stack Overflow]
* Checking the typo or "ensure that there are no compile-time errors"<ref>[https://stackoverflow.com/help/mcve How to create a Minimal, Complete, and Verifiable example - Help Center - Stack Overflow]</ref> by using [https://www.jslint.com/ JSLint] [[Javascript debug#tools | tools]].
* Checking the typo or "ensure that there are no compile-time errors"<ref>[https://stackoverflow.com/help/mcve How to create a Minimal, Complete, and Verifiable example - Help Center - Stack Overflow]</ref> by using [https://www.jslint.com/ JSLint] [[Javascript debug#tools | tools]].
* Verify the format of JSON file if the file was used by javascript by using [https://jsonlint.com/ JSONLint - The JSON Validator] tools.
* Verify the format of JSON file if the file was used by javascript by using [https://jsonlint.com/ JSONLint - The JSON Validator] tools.
* Disable the browser extension e.g. switch to '''incognito window''' on {{Chrome}}
* Disable the browser extension e.g. switch to '''incognito window''' on {{Chrome}}
* Clear or disable the browser cache<ref>[https://www.java.com/zh_TW/download/help/webcache.xml 我要如何清除網頁瀏覽器快取?]</ref>
* Clear or disable the browser cache<ref>[https://www.java.com/zh_TW/download/help/webcache.xml 我要如何清除網頁瀏覽器快取?]</ref>
* Reload the webpage again
* Reload the webpage again
* Switch to different network environment
* Switch to different network environment


Anonymous user

Navigation menu