javascript控制台
When it fails, JavaScript most often dies with barely a whimper. While this is generally a good thing – a failed script won’t usually blow up your page – it can also make finding JavaScript errors a frustrating and time-consuming exercise.
当它失败时,JavaScript几乎绝不会wh之以鼻。 尽管这通常是一件好事-失败的脚本通常不会使您的页面崩溃,但它也会使查找JavaScript错误成为一件令人沮丧且耗时的工作。
In the early days of web development, bug tracking was often accomplished by inserting variable values in alert()
windows, which would act as primitive indicators of script behaviour. Today, with many more scripts on web pages, we need much more powerful ways to write and test JavaScript. console
, originally developed as part of the Firebug browser extension, now has its own API, and is invaluable for web developers at every skill level.
在Web开发的早期,错误跟踪通常是通过在alert()
窗口中插入变量值来完成的,这些变量值可以作为脚本行为的原始指示。 如今,随着网页上更多脚本的出现,我们需要更强大的方法来编写和测试JavaScript。 console
最初是作为Firebug