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

How to work with the examples

In every chapter of this book, I will provide a few code examples. If you wish to try them out, you will need to replicate the test environment I'm using here.

On my test server, my directory layout (within the public_html directory) is like this:

./php_and_jquery
./php_and_jquery/jquery.min.js
./php_and_jquery/jquery-ui.css
./php_and_jquery/jquery-ui.min.js
./php_and_jquery/1-tests 
./php_and_jquery/2-contextual_help 
[... others from various chapters ...]
./php_and_jquery/ckeditor 
./php_and_jquery/images 
./php_and_jquery/jquery-validate 
[... other plugins ...]

You can see that there's a common theme—everything has its own subdirectory. The jQuery library is kept in the root directory, ./php_and_jquery/, along with the jQuery UI library (when we use it). We will discuss where to get these from in Chapter 2, Quick Tricks.

Here is the root directory of my own test server. It shows the libraries we will use throughout the book, and two test directories (9-5 and 9-4):

How to work with the examples

When creating your own test server, it should end up looking like this.

You can start out with the empty directories. Each chapter will explain what new files to download and where to get them from.

Each of the examples has a number of screenshots, so you can verify your own tests against what my tests display.

主站蜘蛛池模板: 姚安县| 德惠市| 栾川县| 启东市| 瑞金市| 呼伦贝尔市| 吉首市| 大方县| 济阳县| 商河县| 若羌县| 上蔡县| 泾源县| 深水埗区| 南平市| 河津市| 沭阳县| 汶川县| 淮安市| 界首市| 衡阳县| 安溪县| 纳雍县| 中牟县| 石台县| 澄迈县| 建昌县| 宕昌县| 平原县| 崇礼县| 德庆县| 永康市| 大厂| 和平县| 苗栗市| 尚义县| 罗城| 当阳市| 涪陵区| 贵溪市| 上高县|