• Home
  • Random
  • Log in
  • Settings
  • About LemonWiki共筆
  • Disclaimers
LemonWiki共筆

Javascript debug

  • Language
  • Watch
  • Edit
Revision as of 15:51, 8 September 2017 by Planetoid (talk | contribs) (→methods / functions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<< Testing: Javascript

methods / functions

Print message

  • alert() Method: Window alert() Method equivalent: window.alert("some message...");
  • Is there an equivalent for var_dump (PHP) in Javascript? - Stack Overflow
  • console.log()
    • Firefox browser_firefox.png : Firebug and Logging : Firebug, 利用Firebug的console功能作JavaScript偵錯 - iT邦幫忙::IT知識分享社群 for Firefox browser_firefox.png Icon_exclaim.gif not work for the Firebug Lite for Google Chrome(tested version: 1.4.0.11967 )
    • Chrome   : Using the Console - Chrome Developer Tools — Google Developers Enter the javascript scripts in the console ( after the > symbol) directly.
    • IE   v.9: Using the F12 Tools Console to View Errors and Status (Windows) / 使用 F12 工具主控台檢視錯誤和狀態 (Windows) Icon_exclaim.gif not IE   v.8
  • Javascript var_dump function | Tsung's Blog

DOM

  • 如果是進行 DOM 操作,可以將選定的 DOM 元素標上顏色,確認有選到。 ex: using .addClass() | jQuery API Documentation

Data type

  • isNaN() Function, isFinite() Function, typeof variable

Browser tool

  • javascript - How do I view events fired on an element in Chrome DevTools? - Stack Overflow on Chrome  

Browser cache issue

  • javascript - Managing browser cache - Stack Overflow
  • The Will Will Web | 簡易克服 CSS 被瀏覽器快取(Cache)的問題

tools

  • The Online Lint
  • JSLint,The JavaScript Code Quality Tool
    • desktop editor: Sublime Text + package: JSLint[1]
  • JS Bin - Collaborative JavaScript Debugging Good.gif allow to download


references

  1. ↑ JSLint integration for Sublime Text 2
Retrieved from "https://wiki.planetoid.info/index.php?title=Javascript_debug&oldid=18540"
View edit history of this page.

Languages

    This page is not available in other languages.

    LemonWiki共筆
    • This page was last edited on 8 September 2017, at 15:51.
    • Content is available under Creative Commons Attribution-NonCommercial-ShareAlike unless otherwise noted.
    • Privacy policy
    • About LemonWiki共筆
    • Disclaimers
    • Desktop