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

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.

主站蜘蛛池模板: 西青区| 合山市| 木里| 广德县| 永泰县| 河间市| 景泰县| 梓潼县| 和林格尔县| 东港市| 阿克陶县| 高陵县| 安福县| 金塔县| 桐庐县| 佛坪县| 海伦市| 宁乡县| 吉隆县| 广平县| 芦溪县| 庆阳市| 鞍山市| 大关县| 霍林郭勒市| 南木林县| 竹山县| 凯里市| 纳雍县| 綦江县| 平昌县| 息烽县| 蓬溪县| 玉环县| 彰化县| 东乡| 苏尼特右旗| 仙桃市| 乳源| 元氏县| 改则县|