官术网_书友最值得收藏!

Setting up Your Training Environment

This book takes a "do it yourself" approach when it comes to writing code, because the author firmly believes that the best way to really learn a programming language is by writing code. So there's no cut-and-paste-ready code downloads, which you can simply put in your pages. On the contrary, you're expected to type in code, see how it works and then tweak it and play around with it. When trying out the code examples, you're encouraged to enter the code into Firebug's console. Let's see how you go about doing this.

Getting the Tools You Need

As a developer, you most likely already have Firefox installed and use it for your daily web browsing pleasure. If not, do yourself a favor and install it right now. It's free and runs on any platform—Windows, Linux, or Mac. Download it from http://www.mozilla.com/firefox/.

The Firefox browser is extensible and there are lots of useful extensions out there (all written in JavaScript!). A popular extension is Firebug—an indispensable tool for web development, with lots of useful features. Download Firebug from http://www.getfirebug.com/, install it, and try it out by starting Firefox and going to any page and pressing F12 (on Windows) or clicking on the little bug icon at the bottom right corner of the Firefox screen. This will open the Firebug feature we're most interested in—the console.

主站蜘蛛池模板: 靖宇县| 启东市| 江陵县| 梓潼县| 彭水| 新密市| 岱山县| 长丰县| 富民县| 循化| 昌乐县| 达拉特旗| 景东| 东宁县| 白玉县| 南雄市| 益阳市| 平乡县| 乐陵市| 永嘉县| 高淳县| 芜湖市| 浦东新区| 武安市| 行唐县| 定日县| 霍城县| 鲜城| 江北区| 兴安县| 宝山区| 三都| 镇赉县| 琼结县| 山阴县| 鄂尔多斯市| 聂拉木县| 安乡县| 启东市| 久治县| 淮滨县|