<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>彬Go &#187; Ajax</title>
	<atom:link href="http://blog.bingo929.com/category/technology/ajax/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.bingo929.com</link>
	<description>关注前端开发/网页设计/网站可用性/用户体验</description>
	<lastBuildDate>Fri, 16 Dec 2011 17:14:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>15款提高表格操作的jQuery插件</title>
		<link>http://blog.bingo929.com/15-jquery-plugins-for-better-table-manipulation.html</link>
		<comments>http://blog.bingo929.com/15-jquery-plugins-for-better-table-manipulation.html#comments</comments>
		<pubDate>Mon, 21 Dec 2009 06:40:55 +0000</pubDate>
		<dc:creator>彬Go</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[前端开发]]></category>

		<guid isPermaLink="false">http://blog.bingo929.com/?p=2824</guid>
		<description><![CDATA[　　table表格由于它的浏览器兼容性和复杂的标签嵌套方式，可以算是添加样式最困难的对象之一了。大多数前端er都把网页中的table标签替换为div，主要就是因为div要比table更容易添加CSS样式。... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.bingo929.com/15-jquery-plugins-for-better-table-manipulation.html"><img src="http://blog.bingo929.com/wp-content/uploads/2009/12/jquery-table-plugins-title.jpg" alt="jquery-table-表格-插件" title="jquery-table-表格-插件" width="500" height="150" class="alignnone size-full wp-image-2825" /></a></p>
<p>　　table表格由于它的浏览器兼容性和复杂的标签嵌套方式，可以算是添加样式最困难的对象之一了。大多数前端er都把网页中的table标签替换为div，主要就是因为div要比table更容易添加CSS样式。但是我们在日常应用中仍然要用到table表格，其中最好的例子就是对照表。今天彬Go将向大家推荐<strong>15个jQuery表格插件</strong>让你对数据表格进行显示、排序、筛选和操控。如jQuery表格排序插件、jQuery表格拖拽插件、jQuery树形表格插件、设置颜色、点击、替换等效果。<br />
<span id="more-2824"></span><br />
<strong><span style="color: #ff6600;">您还可以参考以下javascript相关资源:</span></strong><br />
《<a href="http://blog.bingo929.com/useful-javascript-plot-charts-web.html">推荐9款很棒的网页绘制图表JavaScript框架脚本</a>》<br />
《<a href="http://blog.bingo929.com/jquery-javascript-tips-to-improve-code.html">了解jQuery技巧来提高你的代码</a>》<br />
《<a href="http://blog.bingo929.com/10-ajax-effects-website-fanciness.html">10种JavaScript特效实例让你的网站更吸引人</a>》<br />
《<a href="http://blog.bingo929.com/300-jquery-css-mootools-js-navigation-menus.html">300+Jquery, CSS, MooTools 和 JS的导航菜单资源</a>》</p>
<h3>1.<a href="http://www.datatables.net/" target="_blank">DataTables</a>-强大的jQuery表格插件</h3>
<p><a href="http://blog.bingo929.com/15-jquery-plugins-for-better-table-manipulation.html"><img src="http://blog.bingo929.com/wp-content/uploads/2009/12/datatables.jpg" alt="datatables-jquery-插件" title="datatables-jquery-插件" width="500" height="194" class="alignnone size-full wp-image-2827" /></a><br />
　　DataTables是提供了大量特性的强大jQuery表格插件。例如:你可以自动轻松筛选、Ajax预读取数据、分页、列排序、高亮排序列、扩展插件支持、使用CSS或jQuery UI ThemeRoller 定制主题和完整文档。</p>
<h3>2.<a href="http://gregweber.info/projects/uitablefilter" target="_blank">uiTableFilter</a>-jQuery表格过滤插件</h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/12/ui-table-filter.jpg" alt="ui-table-filter-jquery-插件" title="ui-table-filter-jquery-插件" width="500" height="415" class="alignnone size-full wp-image-2829" /><br />
　　uiTableFilter是一个用于表格行筛选的jQuery插件。插件作者提供了详细的例子来告诉大家如何将自己的表格和插件整合在一起并完成表格筛选。</p>
<h3>3.<a href="http://www.webtoolkit.info/scrollable-html-table-plugin-for-jquery.html" target="_blank">Scrollable HTML Table</a>-jQuery表格滚动插件</h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/12/scrollable-html-table.jpg" alt="scrollable-html-table-jquery" title="scrollable-html-table-jquery" width="500" height="171" class="alignnone size-full wp-image-2830" /><br />
　　Scrollable HTML Table <a href="http://blog.bingo929.com/category/technology/jquery-technology">jQuery</a>插件可以让你的表格变得可以滚动控制。</p>
<h3>4.<a href="http://tablesorter.com/docs/" target="_blank">Tablesorter</a>-jQuery表格排序插件</h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/12/tablesorter.jpg" alt="tablesorter-jquery-插件" title="tablesorter-jquery-插件" width="500" height="120" class="alignnone size-full wp-image-2831" /><br />
　　Tablesorter这个jQuery插件是用来将一个包含thead和tbody标签的标准HTML表格转变为无页面刷新的可排序表格。它不但支持多列排序，而且跨浏览器兼容并且能通过widget系统进行扩展。</p>
<h3>5.<a href="http://flexigrid.info/" target="_blank">Flexigrid</a>-Web2.0 jQuery表格插件</h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/12/flexigrid.jpg" alt="flexigrid-jquery" title="flexigrid-jquery" width="500" height="224" class="alignnone size-full wp-image-2833" /><br />
　　Flexigrid 是一个轻量级的Web2.0 jQuery插件。它包含很多非常Cool的特性，如主题定制、分页、工具栏、搜索、排序、ajax读取数据源、调整列宽高尺寸等。</p>
<h3>6.<a href="http://www.jnathanson.com/blog/client/jquery/heatcolor/index.cfm" target="_blank">HeatColor</a>-jQuery表格颜色插件</h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/12/heatcolor.jpg" alt="heatcolor-jquery" title="heatcolor-jquery" width="500" height="340" class="alignnone size-full wp-image-2834" /><br />
　　HeatColor可以让你根据元素的值来为元素设置颜色。 它的值的比对时根据预设的一个范围来进行比较，最后对他们自动进行颜色值的设置。</p>
<h3>7.<a href="http://www.hanpau.com/index.php?page=jqtreetable" target="_blank">JQTreeTable</a>-jQuery树形表格插件</h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/12/jqtreetable.jpg" alt="jqtreetable-jquery" title="jqtreetable-jquery" width="500" height="220" class="alignnone size-full wp-image-2835" /><br />
　　使用JQTreeTable插件你可以得到一个树形表格，如果用户的浏览器禁用了JavaScript，那么他们也能看到普通形式的表格，并不影响可访问性。</p>
<h3>8.<a href="http://reconstrukt.com/ingrid/" target="_blank">Ingrid</a>-jQuery表格插件</h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/12/ingrid.jpg" alt="ingrid-jquery-表格-插件" title="ingrid-jquery-表格-插件" width="500" height="224" class="alignnone size-full wp-image-2836" /><br />
　　Ingrid是另一个数据表jQuery插件。它也有很多特性，比如列调整尺寸、排序、行列添加样式等。在作者网站提供了很棒的文档来告诉大家如何从头使用这个jQuery表格插件。 </p>
<h3>9.<a href="http://p.sohei.org/jquery-plugins/columnmanager/" target="_blank">jQuery ColumnManager plugin</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/12/jquery-column-manager.jpg" alt="jquery-column-manager-jquery-表格插件" title="jquery-column-manager-jquery-表格插件" width="500" height="150" class="alignnone size-full wp-image-2837" /><br />
　　columnManager是可以控制任意表格列显示或隐藏的jQuery插件，而且它可以保存当前表格的状态至你下次访问。这个jQuery插件非常小巧轻量，仅3.6kb。 </p>
<h3>10.<a href="http://blog.cubicphuse.nl/2008/11/12/jquery-treetable-2-0" target="_blank">jQuery treeTable</a>-jQuery树形表格插件</h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/12/jquery-treetable.jpg" alt="jquery-treetable-树形表格插件" title="jquery-treetable-树形表格插件" width="500" height="192" class="alignnone size-full wp-image-2844" /><br />
　　jQuery treeTable是小型的JQTreeTable, 它也能让你的table显示成树形结构. 这个插件也可以在浏览器禁用JavaScript时保持文档整洁并让原始table可以使用.</p>
<h3>11.<a href="http://plugins.jquery.com/project/csv2table" target="_blank">CSV2Table</a>-CSV格式读取表格插件</h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/12/csv2table.jpg" alt="csv2table-jQuery表格插件" title="csv2table-jQuery表格插件" width="500" height="232" class="alignnone size-full wp-image-2845" /><br />
　　CSV2Table 可以读取CSV文件，它从CSV文件中读取内容并创建成table表格.</p>
<h3>12.<a href="http://neoalchemy.org/tablePagination.html" target="_blank">Table Pagination</a>-jQuery表格分页插件</h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/12/table-pagination.jpg" alt="table-pagination-jQuery表格插件" title="table-pagination-jQuery表格插件" width="500" height="227" class="alignnone size-full wp-image-2846" /><br />
　　这个jQuery表格分页插件可以在表格下面创建分页元素，你还可以通过各种设置来定制分页。</p>
<h3>13.<a href="http://pure-essence.net/stuff/webTips/jqueryTableRowCheckboxToggle.html" target="_blank">jQuery TableRowCheckboxToggle</a></h3>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2009/12/jquery-table-row-checkbox-toggle.jpg" alt="jquery-table-插件" title="jquery-table-插件" width="500" height="182" class="alignnone size-full wp-image-2848" /><br />
　　这个<a href="http://blog.bingo929.com/category/technology/jquery-technology">jQuery</a>表格插件可以让你再点击表格行的时候改变多选框状态并修改该行CSS样式。</p>
<h3>14.<a href="http://www.isocra.com/2008/02/table-drag-and-drop-jquery-plugin/" target="_blank">Table Drag and Drop jQuery plugin</a>-jQuery表格拖拽插件</h3>
<p>　　这个简单的jQuery插件可以让用户使用拖拽行的方式重新排列表格各行，任意单独行可以设置为不可拖拽和/或不可放置。</p>
<h3>15.<a href="http://gregweber.info/projects/uitableedit" target="_blank">uiTableEdit</a></h3>
<p>　　uiTableEdit是由Greg Weber制作的很酷的jQuery表格编辑插件，它允许用户编辑表格内容。</p>
<h3>留意更新</h3>
<p><a href="http://feed.feedsky.com/bingo929" target="_blank">订阅彬Go</a>以查看网页设计最新资源。 </p>
<p>英文原文:<a title="15 Great jQuery Plugins For Better Table Manipulation" href="http://www.webdesignbooth.com/15-great-jquery-plugins-for-better-table-manipulation/" target="_blank">15 Great jQuery Plugins For Better Table Manipulation</a><br />
翻译原文:<a title="15款提高表格操作的jQuery插件" href="http://blog.bingo929.com/15-jquery-plugins-for-better-table-manipulation.html">15款提高表格操作的jQuery插件</a>(<a href="http://blog.bingo929.com/">彬Go</a>)</p>
<div style="border: 1px solid #afedff; padding: 10px; display: block; background-color: #e9faff;"><strong><span style="color: #ff0000;">转载声明:</span></strong><br />
原载:<a href="http://blog.bingo929.com/">彬Go</a>——集前端开发/网页设计/网站可用性/用户体验于一体的趣味互联网生活<br />
本文链接:<a title="15款提高表格操作的jQuery插件" href="hhttp://blog.bingo929.com/15-jquery-plugins-for-better-table-manipulation.html">http://blog.bingo929.com/15-jquery-plugins-for-better-table-manipulation.html<br />
</a>如需转载必须以链接形式注明原载或原文地址，谢谢合作</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.bingo929.com/15-jquery-plugins-for-better-table-manipulation.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>了解jQuery技巧来提高你的代码</title>
		<link>http://blog.bingo929.com/jquery-javascript-tips-to-improve-code.html</link>
		<comments>http://blog.bingo929.com/jquery-javascript-tips-to-improve-code.html#comments</comments>
		<pubDate>Mon, 23 Nov 2009 02:01:13 +0000</pubDate>
		<dc:creator>彬Go</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://blog.bingo929.com/?p=2760</guid>
		<description><![CDATA[　　jQuery之所以如此流行并被从大公司到个人博客的几乎每个人都广泛使用，是因为它上手和使用相当简单，而且为我们提供了一些人都不知道的相当棒的特性。我认为jQuery的大多数用户更趋... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.bingo929.com/jquery-javascript-tips-to-improve-code.html"><img src="http://blog.bingo929.com/wp-content/uploads/2009/11/jquery-tips-title.jpg" alt="jquery-技巧-教程" title="jquery-技巧-教程" width="500" height="200" class="alignnone size-full wp-image-2761" /></a></p>
<p>　　jQuery之所以如此流行并被从大公司到个人博客的几乎每个人都广泛使用，是因为它上手和使用相当简单，而且为我们提供了一些人都不知道的相当棒的特性。我认为jQuery的大多数用户更趋向于使用jQuery插件来解决面临的难题，这通常是明智的选择。但是当插件相对于你的需求有一定缺陷的时候，你也许更应该想办法自己来解决，下面来看看这些实用的jQuery技巧，他们肯定会能够派上用场的！<br />
<span id="more-2760"></span></p>
<p><strong><span style="color: #ff6600;">您还可以参考以下JavaScript相关教程及资源:</span></strong><br />
《<a href="http://blog.bingo929.com/10-ajax-effects-website-fanciness.html">10种JavaScript特效实例让你的网站更吸引人</a>》<br />
《<a href="http://blog.bingo929.com/300-jquery-css-mootools-js-navigation-menus.html">300+Jquery, CSS, MooTools 和 JS的导航菜单资源</a>》<br />
《<a href="http://blog.bingo929.com/10-sources-ajax-javascript.html">10个非常棒的Ajax及Javascript实例资源网站</a>》<br />
《<a href="http://blog.bingo929.com/useful-javascript-plot-charts-web.html">推荐9款很棒的网页绘制图表JavaScript框架脚本</a>》</p>
<h3>1.测试并提升你的jQuery选择器水平</h3>
<p>　　这个<a href="http://codylindley.com/jqueryselectors/" target="_blank">jQuery选择器实验室</a>非常酷，它能在线免费使用，当然你也能下来到本地离线使用。这个测试页面包含复杂的HTML组合字段，然后你能尝试预定义使用各种jQuery选择器。如果这还不够你也可以自定义选择器。<br />
<a href="http://blog.bingo929.com/wp-content/uploads/2009/11/jquery-tips-01.jpg" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2009/11/jquery-tips-01-500x280.jpg" alt="jquery-选择器-技巧" title="jquery-选择器-技巧" width="500" height="280" class="alignnone size-medium wp-image-2765" /></a><br />
<em>点击上图查看清晰大图</em></p>
<h3>2.测试jQuery包装集是否包含某些元素</h3>
<p>　　如果你想测试一下某个jQuery包装集中是否包含某些元素，你首先可以尝试使用验证首个元素是否存在：</p>
<div class="codecolorer-container javascript blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span>selector<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>...<span style="color: #009900;">&#125;</span><br />
<span style="color: #006600; font-style: italic;">// 或者这样</span><br />
<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span>selector<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">length</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>...<span style="color: #009900;">&#125;</span></div></div>
<p>来看看这个例子：</p>
<div class="codecolorer-container html4strict blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">//例子.如果你的页面有以下html代码<br />
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;shopping_cart_items&quot;</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;in_stock&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;item&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;radio&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Item-X&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>Item X<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;unknown&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;item&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;radio&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Item-Y&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>Item Y<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;in_stock&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;item&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;radio&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Item-Z&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>Item Z<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">pre</span> escaped<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000066;">lang</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;javascript&quot;</span>&gt;</span>...<br />
//这个if条件将返回true，因为我们有两个<br />
// input域匹配了选择器，所以<span style="color: #009900;">&lt;statement&gt;</span>代码将会执行<br />
if($('#shopping_cart_items input.in_stock')[0]){<span style="color: #009900;">&lt;statement&gt;</span>}</div></div>
<h3>3.从jquery.org读取jQuery最新版本</h3>
<p>你可以使用这句代码读取jQuery的最新版本的代码文件。</p>
<div class="codecolorer-container html4strict blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://code.jquery.com/jquery-latest.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></div></div>
<p>你可以使用这个方法来调用最近版本的jQuery框架，当然，你还可以使用下面这个代码从ajax.googleapis.com调用同样的最新版本jQuery：</p>
<div class="codecolorer-container html4strict blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot;</span></span><br />
<span style="color: #009900;"><span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></div></div>
<h3>4.存储数据</h3>
<p>　　使用data方法可以避免在DOM中存储数据，有些前端开发er喜欢使用HTML的属性来存储数据：</p>
<div class="codecolorer-container javascript blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'selector'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'alt'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'data being stored'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #006600; font-style: italic;">//之后可以这样读取数据:</span><br />
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'selector'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'alt'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p>　　使用&#8221;alt&#8221;属性来作为参数名存储数据其实对于HTML来说是不符合语义的，我们可以使用jQuery的data方法来为页面中的某个元素存储数据：</p>
<div class="codecolorer-container javascript blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'selector'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">data</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'参数名'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'要存储的数据'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #006600; font-style: italic;">//之后这样取得数据:</span><br />
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'selector'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">data</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'参数'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p>　　这个data方法能让你自己明明数据的参数，更语义更灵活，你可以在页面上的任何元素存储数据信息。如果想了解更多关于data()和removeData()方法的介绍，可以看看<a href="http://docs.jquery.com/Internals" target="_blank">jQuery官方讲解</a></p>
<p>这个方法的经典应用是给input域一个默认值，然后在聚焦的时候清空它:<br />
HTML部分:</p>
<div class="codecolorer-container html4strict blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">form</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;testform&quot;</span>&gt;</span><br />
&nbsp;<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;clear&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Always cleared&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span><br />
&nbsp;<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;clear once&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Cleared only once&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span><br />
&nbsp;<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Normal text&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">form</span>&gt;</span></div></div>
<p>JavaSript部分:</p>
<div class="codecolorer-container javascript blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp;<span style="color: #006600; font-style: italic;">//取出有clear类的input域</span><br />
&nbsp;<span style="color: #006600; font-style: italic;">//(注: &quot;clear once&quot; 是两个class clear 和 once)</span><br />
&nbsp;$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#testform input.clear'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp;<span style="color: #006600; font-style: italic;">//使用data方法存储数据</span><br />
&nbsp; &nbsp;$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">data</span><span style="color: #009900;">&#40;</span> <span style="color: #3366CC;">&quot;txt&quot;</span><span style="color: #339933;">,</span> $.<span style="color: #660066;">trim</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">focus</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp;<span style="color: #006600; font-style: italic;">// 获得焦点时判断域内的值是否和默认值相同，如果相同则清空</span><br />
&nbsp; &nbsp;<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> $.<span style="color: #660066;">trim</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">===</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">data</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;txt&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp;$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;<span style="color: #009900;">&#125;</span><br />
&nbsp;<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">blur</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp;<span style="color: #006600; font-style: italic;">// 为有class clear的域添加blur时间来恢复默认值</span><br />
&nbsp; &nbsp;<span style="color: #006600; font-style: italic;">// 但如果class是once则忽略</span><br />
&nbsp; &nbsp;<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> $.<span style="color: #660066;">trim</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">===</span> <span style="color: #3366CC;">&quot;&quot;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span>$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hasClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;once&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #006600; font-style: italic;">//Restore saved data</span><br />
&nbsp; &nbsp; &nbsp;$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">data</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;txt&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;<span style="color: #009900;">&#125;</span><br />
&nbsp;<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p><a href="http://www.tripwiremagazine.com/wp-content/uploads/images/stories/Articles/jquery-tips/demo.html" target="_blank">查看Demo</a></p>
<h3>5.jQuery手册常备身边</h3>
<p>　　大多数人都很难记住所有的编程细节，即使再好的程序员也会有对某个程序语言的疏忽大意，所以把相关的手册打印出来或随时放在桌面上进行查阅绝对是可以提高编程效率的。<br />
<a href="http://oscarotero.com/jquery/" target="_blank">oscarotero jquery 1.3</a> (<a href="http://www.gmtaz.com/index.php/jquery-13-cheatsheet-wallpaper/" target="_blank">壁纸版</a>)<br />
<img src="http://blog.bingo929.com/wp-content/uploads/2009/11/oscarotero.jpg" alt="jQuery手册" title="jQuery手册" width="471" height="348" class="alignnone size-full wp-image-2777" /></p>
<h3>6.在FireBug控制台记录jQuery</h3>
<p>　　FireBug是我最喜欢用的一个浏览器扩展工具之一，这个工具可以让你快速的在可视化界面中了解当前页面的HTML+CSS+JavaScript，并在该工具下完成即时开发。作为jQuery或JavaScript开发人员，FireFox对于<a href="http://www.getfirebug.com/logging.html" target="_blank">记录你的JavaScript代码</a>也得到支持。</p>
<p>写入FireBug控制台的最简单方式如下:</p>
<div class="codecolorer-container javascript blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">console.<span style="color: #660066;">log</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;hello world&quot;</span><span style="color: #009900;">&#41;</span></div></div>
<p><a href="http://blog.bingo929.com/wp-content/uploads/2009/11/fire.jpg" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2009/11/fire-500x200.jpg" alt="firebug-jquery-控制台" title="firebug-jquery-控制台" width="500" height="200" class="alignnone size-medium wp-image-2783" /></a></p>
<p>你也可以按照你希望的方式写一些参数：</p>
<div class="codecolorer-container javascript blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">console.<span style="color: #660066;">log</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">2</span><span style="color: #339933;">,</span><span style="color: #CC0000;">4</span><span style="color: #339933;">,</span><span style="color: #CC0000;">6</span><span style="color: #339933;">,</span><span style="color: #CC0000;">8</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;foo&quot;</span><span style="color: #339933;">,</span>bar<span style="color: #009900;">&#41;</span></div></div>
<p>你也可以编写一个小扩展来记录jQuery对象到控制台：</p>
<div class="codecolorer-container javascript blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">jQuery.<span style="color: #660066;">fn</span>.<span style="color: #660066;">log</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>msg<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; console.<span style="color: #660066;">log</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;%s: %o&quot;</span><span style="color: #339933;">,</span> msg<span style="color: #339933;">,</span> <span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">this</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></div></div>
<p>对于这个扩展，你可以直接使用.log()方法来记录当前对象到控制台。</p>
<div class="codecolorer-container javascript blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#some_div'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'li.source &gt; input:checkbox'</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; .<span style="color: #660066;">log</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;sources to uncheck&quot;</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; .<span style="color: #660066;">removeAttr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;checked&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<h3>7.尽可能使用ID选择器</h3>
<p>　　在使用jQuery之后，你会发现利用class属性来选择DOM元素变得相当简单。尽管如此，还是推荐大家尽量少用class选择器取而代之尽量多使用运行更快的ID选择器(IE浏览器下使用class选择器会在遍历整个DOM树之后返回相符的class包装集)。而ID选择器更快是因为DOM本身就有&#8221;天然的&#8221;getElementById这个方法，而class并没有。所以如果使用class选择器的话，浏览器会遍历整个DOM，如果你的网页DOM结构足够复杂，这些class选择器足矣把页面拖得越来越慢。让我们看看这段简单的HTML代码:</p>
<div class="codecolorer-container html4strict blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;main&quot;</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">form</span> <span style="color: #000066;">method</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;post&quot;</span> <span style="color: #000066;">action</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;/&quot;</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>Selectors in jQuery<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h2</span>&gt;</span><br />
&nbsp; ...<br />
&nbsp; ...<br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;button&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;main_button&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Submit&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">form</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></div></div>
<div class="codecolorer-container javascript blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #006600; font-style: italic;">//使用class来调用submit按钮要比使用绝对的ID选择器慢很多</span><br />
<span style="color: #003366; font-weight: bold;">var</span> main_button <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#main .button'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #003366; font-weight: bold;">var</span> main_button <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#main_button'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<h3>8.善于利用jQuery链</h3>
<p>　　jQuery链不但允许以简洁的方式写出强大的操作，而且提高了开发效率，因为它能够把多个命令应用到包装集，而不必重新计算包装集。从而你不用再这样写了：</p>
<div class="codecolorer-container html4strict blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>Description: <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;description&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span></div></div>
<div class="codecolorer-container javascript blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#shopping_cart_items input.text'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'border'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'3px dashed yellow'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#shopping_cart_items input.text'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'background-color'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'red'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#shopping_cart_items input.text'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;text updated&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p>取而代之你可以使用jQuery链来完成简便的操作：</p>
<div class="codecolorer-container javascript blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #003366; font-weight: bold;">var</span> input_text <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#shopping_cart_items input.text'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
input_text.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'border'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'3px dashed yellow'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
input_text.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'background-color'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'red'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
input_text.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;text updated&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<br />
<span style="color: #006600; font-style: italic;">//same with chaining:</span><br />
<span style="color: #003366; font-weight: bold;">var</span> input_text <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#shopping_cart_items input.text'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
input_text<br />
&nbsp;.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'border'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'3px dashed yellow'</span><span style="color: #009900;">&#41;</span><br />
&nbsp;.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'background-color'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'red'</span><span style="color: #009900;">&#41;</span><br />
&nbsp;.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;text updated&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<h3>9.绑定jQuery函数到$(window).load事件</h3>
<p>　　大多数jQuery实例或教程都告诉我们绑定我们的jQuery代码到$(document).ready事件。虽然$(document).ready事件在大多数情况下都OK，但是它的解析顺序是在文档准备就绪，单文档中的图片等对象正在下载的时候开始运行的。所以在某些时候使用$(document).ready事件并不一定能达到我们预期的效果，比如一些视觉效果和动画、拖拽、预读取隐藏图片等&#8230;通过使用$(window).load事件便可以安全的在整个文档都准备就绪之后再开始运行你期望的代码。</p>
<div class="codecolorer-container javascript blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">load</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp;<span style="color: #006600; font-style: italic;">// 将你希望在页面完全就绪之后运行的代码放在这里</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<h3>10.使用jQuery链来限定选择器，让你的代码更简洁更优雅</h3>
<p>　　由于JavaScript支持链结构而且支持断行，所以你的代码可以写成下面这样，这个例子先在元素上移除一个class然后在同一个元素上添加另一个class：</p>
<div class="codecolorer-container javascript blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#shopping_cart_items input.in_stock'</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; .<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'in_stock'</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; .<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'3-5_days'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p>如果想让它更简单实用，你可以创建一个支持链结构的jQuery函数：</p>
<div class="codecolorer-container javascript blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$.<span style="color: #660066;">fn</span>.<span style="color: #660066;">makeNotInStock</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'in_stock'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'3-5_days'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
&nbsp;<br />
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#shopping_cart_items input.in_stock'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">makeNotInStock</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">log</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<h3>11.使用回调函数同步效果</h3>
<p>　　如果你想确保某个事件或动画效果要在另一个事件运行之后再调用，那你就要使用回调函数了。你可以在这些动画效果后面绑定回调函数：slideDown( speed, [回调] ) ie. $(&#8216;#sliding&#8217;).slideDown(&#8216;slow&#8217;, function(){&#8230; <a href="http://www.tripwiremagazine.com/wp-content/uploads/images/stories/Articles/jquery-tips2/demo.html" target="_blank">点击这里</a>预览这个例子.</p>
<div class="codecolorer-container css blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;style<span style="color: #00AA00;">&gt;</span><br />
&nbsp;div<span style="color: #6666ff;">.button</span> &nbsp; &nbsp;<span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#cfd</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">3px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">50px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #993333;">center</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span><span style="color: #993333;">pointer</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #993333;">outset</span> <span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">bolder</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
&nbsp;<span style="color: #cc00cc;">#sliding</span> &nbsp; &nbsp; &nbsp;<span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
&lt;/style<span style="color: #00AA00;">&gt;</span></div></div>
<div class="codecolorer-container javascript blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
<span style="color: #006600; font-style: italic;">// 使用jQuery的click事件改变视觉效果，并开启滑动效果</span><br />
&nbsp;$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;div.button&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp;<span style="color: #006600; font-style: italic;">//div.button 现在看上去是按下的效果</span><br />
&nbsp; &nbsp;$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> borderStyle<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;inset&quot;</span><span style="color: #339933;">,</span> cursor<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;wait&quot;</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;<span style="color: #006600; font-style: italic;">//#sliding 现在将渐隐并在完成动作之后开启渐显效果</span><br />
&nbsp; &nbsp;<span style="color: #006600; font-style: italic;">//slideup once it completes</span><br />
&nbsp; &nbsp;$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#sliding'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideDown</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'slow'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp;$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#sliding'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideUp</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'slow'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #006600; font-style: italic;">//渐显效果完成后将会改变按钮的CSS属性</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div.button'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> borderStyle<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;outset&quot;</span><span style="color: #339933;">,</span> cursor<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;auto&quot;</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<h3>12.学会使用自定义选择器</h3>
<p>　　jQuery允许我们在css选择器的基础上定义自定义选择器来让我们的代码更简洁:</p>
<div class="codecolorer-container javascript blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$.<span style="color: #660066;">expr</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">':'</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">mycustomselector</span><span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>element<span style="color: #339933;">,</span> index<span style="color: #339933;">,</span> meta<span style="color: #339933;">,</span> stack<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #006600; font-style: italic;">// element- DOM元素</span><br />
&nbsp; &nbsp; <span style="color: #006600; font-style: italic;">// index - 堆栈中当前遍历的索引值</span><br />
&nbsp; &nbsp; <span style="color: #006600; font-style: italic;">// meta - 关于你的选择器的数据元</span><br />
&nbsp; &nbsp; <span style="color: #006600; font-style: italic;">// stack - 用于遍历所有元素的堆栈</span><br />
&nbsp;<br />
&nbsp; &nbsp; <span style="color: #006600; font-style: italic;">// 包含当前元素则返回true</span><br />
&nbsp; &nbsp; <span style="color: #006600; font-style: italic;">// 不包含当前元素则返回false</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><br />
&nbsp;<br />
<span style="color: #006600; font-style: italic;">// 自定义选择器的应用:</span><br />
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.someClasses:test'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">doSomething</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p>下面让我们来看看一个小例子，我们通过使用自定义选择器来锁定含有&#8221;rel&#8221;属性的元素集：</p>
<div class="codecolorer-container javascript blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$.<span style="color: #660066;">expr</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">':'</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">withRel</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>element<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #003366; font-weight: bold;">var</span> $this <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>element<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #006600; font-style: italic;">//仅返回rel属性不为空的元素</span><br />
&nbsp; <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #009900;">&#40;</span>$this.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'rel'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><br />
&nbsp;<br />
$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
<span style="color: #006600; font-style: italic;">//自定义选择器的使用很简单，它和其他选择器一样，返回一个元素包装集</span><br />
<span style="color: #006600; font-style: italic;">//你可以为他使用格式方法，比如下面这样修改它的css样式</span><br />
&nbsp;$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'a:withRel'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'background-color'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'green'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<div class="codecolorer-container html4strict blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>without rel<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;somerel&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>with rel<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>without rel<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;nofollow&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>a link with rel<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span></div></div>
<h3>13.预加载图片</h3>
<p>通常使用JavaScript来预加载图片是个相当不错的方法:</p>
<div class="codecolorer-container javascript blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #006600; font-style: italic;">//定义预加载图片列表的函数(有参数)</span><br />
&nbsp;<br />
jQuery.<span style="color: #660066;">preloadImages</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #006600; font-style: italic;">//遍历图片</span><br />
&nbsp; <span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i<span style="color: #339933;">&lt;</span>arguments.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;&lt;img&gt;&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;src&quot;</span><span style="color: #339933;">,</span> arguments<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #006600; font-style: italic;">// 你可以这样使用预加载函数</span><br />
$.<span style="color: #660066;">preloadImages</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;images/logo.png&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;images/logo-face.png&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;images/mission.png&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<h3>14.将你的代码测试完好</h3>
<p>　　jQuery有一个名为QUnit单元测试框架。编写测试很容易，它能让您可以放心地修改您的代码，并确保它仍然按预期工作。下面是如何工作的：</p>
<div class="codecolorer-container javascript blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #006600; font-style: italic;">//将测试分成若干模块.</span><br />
module<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Module B&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<br />
test<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;some other test&quot;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #006600; font-style: italic;">//指定多少个判断语句需要加入测试中.</span><br />
&nbsp; expect<span style="color: #009900;">&#40;</span><span style="color: #CC0000;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <br />
&nbsp; equals<span style="color: #009900;">&#40;</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;failing test&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; equals<span style="color: #009900;">&#40;</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;passing test&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<h3>留意更新</h3>
<p><a href="http://feed.feedsky.com/bingo929" target="_blank">订阅彬Go</a>以查看JavaScript最新教程及资源。 </p>
<p>英文原文:<a title="More jQuery and General Javascript Tips to Improve Your Code" href="http://www.tripwiremagazine.com/ajax/developer-toolbox/more-jquery-and-general-javascript-tips-to-improve-your-code.html" target="_blank">More jQuery and General Javascript Tips to Improve Your Code</a><br />
翻译原文:<a title="了解更多jQuery技巧来提高你的代码" href="http://blog.bingo929.com/jquery-javascript-tips-to-improve-code.html">了解更多jQuery技巧来提高你的代码</a>(<a href="http://blog.bingo929.com/">彬Go</a>)</p>
<div style="border: 1px solid #afedff; padding: 10px; display: block; background-color: #e9faff;"><strong><span style="color: #ff0000;">转载声明:</span></strong><br />
原载:<a href="http://blog.bingo929.com/">彬Go</a>——集前端开发/网页设计/网站可用性/用户体验于一体的趣味互联网生活<br />
本文链接:<a title="了解更多jQuery技巧来提高你的代码" href="http://blog.bingo929.com/jquery-javascript-tips-to-improve-code.html">http://blog.bingo929.com/jquery-javascript-tips-to-improve-code.html<br />
</a>如需转载必须以链接形式注明原载或原文地址，谢谢合作</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.bingo929.com/jquery-javascript-tips-to-improve-code.html/feed</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Ajax Loading进度条gif在线生成网站Preloaders.net</title>
		<link>http://blog.bingo929.com/preloaders-net-loading-gif-maker.html</link>
		<comments>http://blog.bingo929.com/preloaders-net-loading-gif-maker.html#comments</comments>
		<pubDate>Wed, 04 Mar 2009 14:20:10 +0000</pubDate>
		<dc:creator>彬Go</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[资源]]></category>
		<category><![CDATA[前端开发]]></category>
		<category><![CDATA[网页设计]]></category>

		<guid isPermaLink="false">http://blog.bingo929.com/?p=2288</guid>
		<description><![CDATA[在这个被Ajax技术统治的互联网时代，很多Ajax程序都会在异步读取数据的同时，显示一个正在读取或Loading的动画，今天彬Go要向大家推荐一个在线生成Loading预载动画Gif图片的网站，它不但提供... ]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://blog.bingo929.com/preloaders-net-loading-gif-maker.html"><img class="size-full wp-image-2289 aligncenter" title="Loading-预载-动画-生成器" src="http://blog.bingo929.com/wp-content/uploads/2009/03/preloader_logo.png" alt="Loading-预载-动画-生成器" width="210" height="72" /></a></p>
<p>在这个被Ajax技术统治的互联网时代，很多Ajax程序都会在异步读取数据的同时，显示一个正在读取或Loading的动画，今天彬Go要向大家推荐一个在线生成Loading预载动画Gif图片的网站，它不但提供了超多的Loading动画样式供你选择，而且你还可以自定义尺寸、颜色等参数，可谓方便到家，最最重要的是，<a href="http://preloaders.net/" target="_blank">PreLoaders.net</a>提供的Loading预载动画生成服务完全免费，心动了吧.<br />
<span id="more-2288"></span></p>
<h3>Loading预载动画图片生成界面如下:</h3>
<p><img class="alignnone size-full wp-image-2290" title="loading-动画-在线生成" src="http://blog.bingo929.com/wp-content/uploads/2009/03/preloader-loading.gif" alt="loading-动画-在线生成" width="500" height="246" /></p>
<h3>Loading预载动画图片生成样例：</h3>
<p style="text-align: center;"><img class="size-full wp-image-2291 aligncenter" title="loading-预载-动画" src="http://blog.bingo929.com/wp-content/uploads/2009/03/38.gif" alt="loading-预载-动画" width="64" height="42" /></p>
<h3>留意更新</h3>
<p><a href="http://feed.feedsky.com/bingo929" target="_blank">订阅彬Go</a>以查看前端开发/CSS兼容性相关最新教程及资源。</p>
<div style="border: 1px solid #afedff; padding: 10px; display: block; background-color: #e9faff;"><strong><span style="color: #ff0000;">转载声明:</span></strong><br />
原载:<a href="../index.php">彬Go</a>——集前端开发/网页设计/网站可用性/用户体验于一体的趣味互联网生活<br />
本文链接:<a title="Ajax Loading进度条gif在线生成网站Preloaders.net" href="http://blog.bingo929.com/preloaders-net-loading-gif-maker.html">http://blog.bingo929.com/preloaders-net-loading-gif-maker.html<br />
</a>如需转载必须以链接形式注明原载或原文地址，谢谢合作</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.bingo929.com/preloaders-net-loading-gif-maker.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>你是一个职业的页面重构工作者吗？</title>
		<link>http://blog.bingo929.com/are-you-professional-web-developer.html</link>
		<comments>http://blog.bingo929.com/are-you-professional-web-developer.html#comments</comments>
		<pubDate>Fri, 09 Jan 2009 14:25:32 +0000</pubDate>
		<dc:creator>彬Go</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[前端开发]]></category>

		<guid isPermaLink="false">http://blog.bingo929.com/?p=2167</guid>
		<description><![CDATA[做为一个专职的页面重构者，我们从事的工作简单的说就是“将设计稿转换成WEB页面”，这一过程可以很简单到直接把PSD从PS里 导出成网页；也可复杂到需要考虑页面中每个标签的使用，考虑... ]]></description>
			<content:encoded><![CDATA[<p>做为一个专职的页面重构者，我们从事的工作简单的说就是“将设计稿转换成WEB页面”，这一过程可以很简单到直接把PSD从<acronym title="Photoshop">PS</acronym>里 导出成网页；也可复杂到需要考虑页面中每个标签的使用，考虑“页面性能”。以“前端工程师”为目标的同学可能会不愿承认将页面重构这块分出来，但随着工种 的细分，加上页面重构本身的专业性，独立为一个职业也不是不可能，至少我现在从事的就是一个专职的职位。如果你觉得一个前端工程师必须去画设计稿，可以不 理会下面的内容。<br />
<span id="more-2167"></span><br />
单纯的页面重构，所涉及到的工作内容一般是“分析设计稿=&gt;切图=&gt;写<acronym title="HyperText Markup Language"><span class="caps">HTML</span></acronym>和<acronym title="Cascade Style Sheet"><span class="caps">CSS</span></acronym>”， 虽然看起来很少，但要做好这份工作，绝非所想的那么容易。原因很简单：工作内容单一，在时间和工作量上必会很苛刻，往往跟设计师的工作时间是3:1，即设 计师给三天的时间，制作只给一天的时间完成；在这种工作强度下，很多人都是靠着对这份工作的喜爱在维持着，一旦工作热情消失，很容易就会变得枯燥，保持热 情也成了重构工作者（也许是所有参加工作的人）应该具备的能力。</p>
<p>跟“前端工程师”所要求的有所不同，“页面重构”虽然也是“前端工程师”的一个范畴，在职业化中，对专职的页面重构者，要求当然也更高。不单是做出页面，而是做出好页面。又引出另一个话题，“何为好页面？”，一般包括下面几点：</p>
<ol>
<li>结构完整，可通过标准验证</li>
<li>标签语义化，结构合理</li>
<li>充分考虑到页面在站点中的“作用和重要性”，并对其进行有针对性的优化</li>
</ol>
<p>很多同学多少都遇到过方向不明，不知道自己应该提高些什么，我们可以从“分析设计稿=&gt;切图=&gt;写HTML和CSS”这个工作内容，针对每一点提出一些要求，以方便我们分析自己的能力水平，为继续提高确定个方向：</p>
<h3>一，设计稿的分析</h3>
<p>设计稿的分析是指对设计稿如何制作成页面的分析，即哪一块的内容可以做为公共的部分、哪一块的内容结构可以如何实现等。对设计稿的分析能力可以划分成下面的几个阶段：</p>
<ol>
<li>能分清设计稿中的公共与私有的部分</li>
<li>在1的基础上对各部分的实现方式有一个初步的方案（包括如何切图、写结构、写样式）</li>
<li>在1的基础上，准确的给出各部分的实现方案（包括如何切图、写结构、写样式）</li>
<li>在3的基础上，能同时考虑方案的扩展性、复用性及页面性能（包括如何切图、写结构、写样式）</li>
<li>在4的基础上，考虑整站的结构分布（包括文件分布、目录结构）</li>
</ol>
<p>上面这些都是在还没开始动手制作之前所要做的。</p>
<h3>二，切图</h3>
<p>切图是指将设计稿切成便于制作成页面的图片。都有个误区，觉得切图就是把图片切出来，其实并不完全是这样，还包括把切出来的图片合并到一起，怎么切、从哪切才能将性能最大化，说“切图是一门艺术”完全不为过。切图也可以划分成几个阶段：</p>
<ol>
<li>切成所需要的图片（如何将需要的部分切出来）</li>
<li>在1的基础上，对切出来的图片进行一些优化（包括压缩文件大小、选择图片类型）</li>
<li>在2的基础上，规划切出来的图片（包括文件分布）</li>
<li>在3的基础上，考虑整体的性能（包括合并图片、压缩文件大小）</li>
</ol>
<h3>HTML和CSS的编写</h3>
<p>HTML和CSS的编写是指将上面完成的内容，通过HTML和CSS的编写，将设计稿转换成WEB页面最重要的一块，也是我们所要重点掌握的内容，把它们放在一起，是因为它们相互的关联性太强，HTML的写法会影响到CSS的写法，它又可以划分成下面几个阶段：</p>
<ol>
<li>还原设计稿视觉效果，并通过标准验证（HTML）</li>
<li>在1的基础上，实现多浏览器的兼容（HTML）</li>
<li>在2的基础上，标签语义化（HTML）</li>
<li>在3的基础上，选择较优的实现方式（包括模块化结构，方便程序脚本使用，HTML和CSS）</li>
<li>在4的基础上，考虑到扩展性、复用性和可维护性（HTML和CSS）</li>
<li>在5的基础上，考虑到整站的样式分布（包括如何实现分布）</li>
<li>在6的基础上，样式写法的优化（包括技巧的应用）</li>
</ol>
<p>是对所遇到问题的解决能力，这一点在不同的阶段都可能会遇到，所以没有写到上面。</p>
<p>如果你已经达到或超过3、4、5，恭喜你，你已经是一个职业的“页面重构工作者”了。为了我们自身的发展，关注新技术、技术创新、提高用户体验、审美观、程序脚本的实现方式等，也是十分必要的。大家一起进步吧。</p>
<p>本文转自:<a href="http://webteam.tencent.com/?p=133" target="_blank">ISD Webteam</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bingo929.com/are-you-professional-web-developer.html/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>2008年最佳Web设计/前端开发技巧、脚本及资源总结</title>
		<link>http://blog.bingo929.com/best-of-2008-for-web-developers.html</link>
		<comments>http://blog.bingo929.com/best-of-2008-for-web-developers.html#comments</comments>
		<pubDate>Wed, 31 Dec 2008 02:24:28 +0000</pubDate>
		<dc:creator>彬Go</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[网页设计]]></category>
		<category><![CDATA[资源]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[前端开发]]></category>

		<guid isPermaLink="false">http://blog.bingo929.com/?p=2121</guid>
		<description><![CDATA[今天是2008年的最后一天，彬Go为大家奉上今年的最后大餐，这篇文章将为大家总结08年国外一些比较不错的前端开发相关的教程、技巧、脚本、实例及工具资源等，有一些是曾经彬Go发表过的翻... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.bingo929.com/best-of-2008-for-web-developers.html"><img class="alignnone size-full wp-image-2122" title="2008-最佳-前端开发" src="http://blog.bingo929.com/wp-content/uploads/2008/12/best-of-2008-for-developers-3.jpg" alt="2008-最佳-前端开发" width="500" height="150" /></a></p>
<p>今天是2008年的最后一天，彬Go为大家奉上今年的最后大餐，这篇文章将为大家总结08年国外一些比较不错的前端开发相关的教程、技巧、脚本、实例及工具资源等，有一些是曾经彬Go发表过的翻译文章。实在是丰盛的需要消化很久&#8230;无论您是刚入门的前端开发菜鸟，还是有多年前端开发经验的高手，我相信下面的这些日志总会有您需要的！<br />
<strong>注:</strong><span style="color: #808080;">链接到的文章都是英文，如果您的英文不好可以尝试使用Google翻译，如果还是无法理解，可以将想看的文章的标题留言给我，暴风彬彬今后有时间会为大家翻译的。</span><span id="more-2121"></span></p>
<h3>工具&amp;Web应用</h3>
<p><a href="http://www.smashingapps.com/2008/11/27/13-most-essential-open-source-apps-that-you-probably-like-to-say-thank-you.html" target="_blank">13个可能会让你说&#8221;Thank You&#8221;的必不可少的开源应用</a></p>
<p><a href="http://www.conversion-rate-experts.com/articles/understanding-your-visitors/" target="_blank">14个免费工具让你了解为什么人们会放弃访问你的网站</a></p>
<p><a href="http://www.allwebdesignresources.com/webdesignblogs/graphics/40-css-generators-creators-and-makers/" target="_blank">40+CSS生成器</a></p>
<p><a href="http://speckyboy.com/2008/03/30/74-great-web-apps-for-web-designers-we-have-forgotten-about/" target="_blank">74个我们可能已经忘记的适合网页设计师的很棒的Web应用</a></p>
<p><a href="http://www.insidecrm.com/features/webmaster-turbo-kit-042108/" target="_blank">50+能提高你的网站速度和性能的技巧和资源</a></p>
<p><a href="http://sixrevisions.com/tools/tools_monitoring_website_popularity/" target="_blank">15个可以监视网站人气的工具</a></p>
<p><a href="http://blog.bingo929.com/20-free-page-seo-analysis-tools.html" target="_blank">20个免费的SEO网站分析工具</a>(已翻译成中文)</p>
<p><a href="http://www.jasonbartholme.com/11-powerful-firefox-3-add-ons-that-can-replace-standalone-applications/" target="_blank">11个功能强大甚至可以替代标准应用程序的Firefox3扩展插件</a></p>
<p><a href="http://www.hongkiat.com/blog/10-free-photo-managing-software-you-should-at-least-know/" target="_blank">10个你至少应该了解的免费照片管理软件</a></p>
<p><a href="http://webjackalope.com/15-things-every-web-developers-should-be-thankful-for/" target="_blank">作为Web前端开发工程师应到感谢的15件事</a></p>
<p><a href="http://blog.bingo929.com/15-bookmarklets.html" target="_blank">15个前端开发/网页设计师必备的Bookmarklet</a>(已翻译成中文)</p>
<p><a href="http://woork.blogspot.com/2008/11/20-great-php-framework-for-developers.html" target="_blank">20大的PHP开发框架</a></p>
<p><a href="http://www.divitodesign.com/2008/08/66-links-to-learn-the-webdesign-basics/" target="_blank">66个学习网页设计基础的链接</a></p>
<p><a href="http://mashable.com/2008/11/01/web-development-tools/" target="_blank">Web开发工具箱： 120 +Web开发新工具</a></p>
<h3>脚本、补丁及Hack</h3>
<p><a href="http://speckyboy.com/2008/02/10/the-top-40-free-ajax-javascript-code-for-web-designers/" target="_blank">40大免费Ajax及JavaScipt代码</a></p>
<p><a href="http://freelancefolder.com/15-top-site-elements/" target="_blank">所有顶级网站应有的15个关键元素</a></p>
<p><a href="http://designm.ag/resources/converting-psd-to-html/" target="_blank">将PSD效果图转换为HTML/CSS的10大教程</a></p>
<p><a href="http://dzineblog.com/2008/10/30-tooltips-scripts.html" target="_blank">30+JavaScript, Ajax &amp; CSS工具提示脚本</a></p>
<p><a href="http://www.hongkiat.com/blog/50-nice-clean-css-tab-based-navigation-scripts/" target="_blank">50+漂亮的基于纯CSS的导航脚本</a></p>
<p><a href="http://www.hongkiat.com/blog/40-most-wanted-wordpress-tricks-and-hacks/" target="_blank">40+最热门的wordpress秘诀和技巧</a>， <a href="http://www.hongkiat.com/blog/30-more-most-wanted-wordpress-tips-tricks-and-hacks/">30+ More</a></p>
<p><a href="http://nettuts.com/articles/web-roundups/30-eye-opening-web-development-screencasts/" target="_blank">30+让你大开眼界的Web前端开发视频教程</a></p>
<p><a href="http://www.designvitality.com/blog/2008/08/19-css-menu-tutorials-to-spice-up-your-web-designs/" target="_blank">19个CSS菜单教程来为你的网站添加更多趣味</a></p>
<p><a href="http://blog.bingo929.com/30-css-tec-examples.html" target="_blank">精选30个优秀的CSS技术和实例</a>(已翻译成中文)</p>
<p><a href="http://www.knowtebook.com/34-free-html-newsletter-templates-for-startups-899.htm" target="_blank">34+免费通讯(Email等)用HTML模板</a></p>
<p><a href="http://www.smashingmagazine.com/2008/10/16/50-excellent-ajax-tutorials/" target="_blank">50个优秀的Ajax教程</a></p>
<p><a href="http://blog.bingo929.com/12-javascript-browser-css-wrong.html" target="_blank">12种Javascript解决常见浏览器兼容问题的方法</a>(已翻译成中文)</p>
<p><a href="http://www.smashingmagazine.com/2008/11/18/15-helpful-in-browser-web-development-tools/" target="_blank">15个有帮助的基于浏览器的Web前端开发工具</a></p>
<p><a href="http://www.smashingmagazine.com/2008/09/11/75-really-useful-javascript-techniques/" target="_blank">75个(真正的)很有帮助的JavaScipt技术</a></p>
<p><a href="http://speckyboy.com/2008/03/08/63-essential-wordpress-hacks-tutorials-help-files-and-cheats/" target="_blank">63个必不可少的Wordpress Hack、教程、帮助文件和手册</a></p>
<p><a href="http://speckyboy.com/2008/03/16/the-best-cheat-sheets-for-web-designers-and-developers-from-css-ajax-perl-vbscript/" target="_blank">Web设计/开发最佳使用手册(19)</a></p>
<p><a href="http://www.smashingmagazine.com/2008/12/02/10-useful-rss-hacks-for-wordpress/" target="_blank">10个针对Worpress有用的RSS技巧和Hack</a></p>
<p><a href="http://speckyboy.com/2008/10/26/20-amazing-javascript-prototype-scripts-elements-widgets-classes/" target="_blank">20个神奇的Javascipt脚本原型、元素、Widgets、类&#8230;</a></p>
<p><a href="http://nettuts.com/tutorials/javascript-ajax/10-rare-but-clever-javascript-techniques/" target="_blank">10个聪明的JavaScipt技术用来提升你的UI界面</a></p>
<p><a href="http://nettuts.com/tutorials/javascript-ajax/20-excellent-ajax-effects-you-should-know/" target="_blank">10个你必须知道的很棒的Ajax特效</a></p>
<p><a href="http://speckyboy.com/2008/10/19/35-easy-to-use-free-ajax-navigation-solutions/" target="_blank">35个使用简便的Ajax/JavaScipt导航解决方案</a></p>
<p><a href="http://www.catswhocode.com/blog/web-design/top-10-css-buttons-tutorial-list-29" target="_blank">10大CSS按钮教程列表</a></p>
<p><a href="http://webtecker.com/2008/06/12/10-free-chart-scripts/" target="_blank">10个免费图表脚本</a></p>
<h3>技巧</h3>
<p><a href="http://nettuts.com/tutorials/php/10-principles-of-the-php-masters/" target="_blank">10个精通PHP的原理</a></p>
<p><a href="http://nettuts.com/tutorials/html-css-techniques/6-easy-ways-to-improve-your-html-emails/" target="_blank">6个简单方法来改善您的HTML邮件</a></p>
<p><a href="http://www.smashingmagazine.com/2008/08/18/7-principles-of-clean-and-optimized-css-code/" target="_blank">整理及优化CSS代码的7个原则</a>(已翻译成中文)</p>
<p><a href="http://www.smashingmagazine.com/2008/11/12/12-principles-for-keeping-your-code-clean/" target="_blank">保持你的代码整洁的12个原则</a></p>
<p><a href="http://www.smashingmagazine.com/2008/11/18/10-advanced-php-tips-to-improve-your-progamming/" target="_blank">10个改善你编程的高级PHP技巧</a></p>
<p><a href="http://blog.bingo929.com/spice-up-your-images-with-css-5-way.html" target="_blank">使用CSS为图片添加更多趣味的5种方法</a>(已翻译成中文)</p>
<p><a href="http://www.prelovac.com/vladimir/wordpress-optimization-guide" target="_blank">10个优化技巧</a></p>
<p><a href="http://www.redswish.co.uk/10-seo-elements-all-websites-should-have/" target="_blank">所有网站都应具备的10个SEO元素</a></p>
<p><a href="http://www.leemunroe.com/10-web-app-tips-from-fowa-london/" target="_blank">来自8为极具灵感的演讲者的10个网络应用技巧</a></p>
<p><a href="http://www.equivalence.co.uk/archives/101" target="_blank">编写赏心悦目的代码的7种方法</a></p>
<p><a href="http://blog.bingo929.com/10-css-shorthand-tips.html" target="_blank">10个CSS简写技巧让你永远受用</a>(已翻译成中文)</p>
<p><a href="http://www.yongfook.com/items/view/81/10-dirty-little-web-development-tricks" target="_blank">10个Web开发小技巧</a></p>
<p><a href="http://blog.themeforest.net/general/15-css-tricks-that-must-be-learned/" target="_blank">15个必须学会的CSS技巧</a></p>
<p><a href="http://www.noupe.com/design/101-css-techniques-of-all-time-part-1.html" target="_blank">101个CSS技术-第一部分</a>,<a href="http://www.noupe.com/css/101-css-techniques-of-all-time-part2.html" target="_blank">第二部分</a></p>
<h3>资源</h3>
<p><a href="http://blog.bingo929.com/20-websites-web-design-usabillity.html" target="_blank">推荐20个关于网站可用性及界面设计的网站</a>(已翻译成中文)</p>
<p><a href="http://blog.bingo929.com/31-practical-web-interface-design-tutorials.html" target="_blank">精选31个网站界面设计实践教程</a>(已翻译成中文)</p>
<p><a href="http://speckyboy.com/2008/02/24/53-steps-to-follow-if-you-want-to-become-freelance-web-designerdeveloper-60-resources/" target="_blank">成为Web设计/开发自由职业者所要遵循了53个步(60+资源)</a></p>
<p><a href="http://speckyboy.com/2008/08/19/a-study-in-ajax-web-trends-what-are-the-best-free-ajax-resources-70-of-the-best-ajax-resources/" target="_blank">Ajax网页趋势研究，什么是最好的免费Ajax资源？(70+最佳Ajax资源)</a></p>
<p><a href="http://speckyboy.com/2008/04/27/155-wordpress-resources-tutorials-plugins-themes-ajax-podcastingwp-monster-list/" target="_blank">155个Wordpress资源、教程、插件、主题、Ajax、播客&#8230;庞大的WP列表</a></p>
<p><a href="http://blog.bingo929.com/10-sources-ajax-javascript.html" target="_blank">10个非常棒的Ajax及Javascript实例资源网站</a>(已翻译成中文)</p>
<p><a href="../gifts-from-designers-to-you-best-of-2008.html">精选2008年最佳设计素材资源&amp;灵感</a> (已翻译成中文)</p>
<p><a href="http://blog.bingo929.com/10-ajax-effects-website-fanciness.html" target="_blank">10种JavaScript特效实例让你的网站更吸引人</a></p>
<p><a href="http://blog.bingo929.com/css-frameworks-15.html" target="_blank">精选15个国外CSS框架</a>(已翻译成中文)</p>
<p><a href="http://speckyboy.com/2008/04/09/41-of-the-best-mootools-ajax-example-downloads/" target="_blank">41个最佳Mootools Ajax实例下载</a></p>
<p><a href="http://blog.bingo929.com/20-websites-learn-css.html" target="_blank">推荐20个让你学习并精通CSS的网站</a>(已翻译成中文)</p>
<p><a href="http://speckyboy.com/2008/04/02/65-excellent-jquery-resources-tutorialscheat-sheetsebooksdemosplugins/" target="_blank">65个优秀的jQuery资源(教程、手册、电子书、demo、插件&#8230;)</a></p>
<p><a href="http://blog.bingo929.com/300-jquery-css-mootools-js-navigation-menus.html" target="_blank">300+Jquery, CSS, MooTools 和 JS的导航菜单资源</a>(已翻译成中文)</p>
<p><a href="../12-free-text-editors-for-web-developer.html">推荐12款可用于前端开发的免费文本编辑器</a></p>
<p><a href="http://blog.bingo929.com/10-beautiful-icons-for-web.html" target="_blank">网页设计必备的10套漂亮图标集</a>(已翻译成中文)</p>
<h3>生成器</h3>
<p><a href="http://www.thewebsqueeze.com/articles/25-color-palette-generating-resources-for-web-designing.html" target="_blank">25个用于网页设计的颜色调色板生成器资源</a></p>
<p><a href="http://www.smashingapps.com/2008/10/21/13-free-online-tools-that-helps-you-to-create-and-host-your-website.html" target="_blank">12款免费在线工具帮助你创建和托管你的网站</a></p>
<p><a href="http://webtecker.com/2008/04/09/25-web-20-generators/" target="_blank">25款Web2.0生成器</a></p>
<h3>插件和主题</h3>
<p><a href="http://www.problogdesign.com/general-tips/10-best-plugins-to-get-more-comments/" target="_blank">10个用来得到更多评论的最棒的插件</a></p>
<p><a href="http://blogof.francescomugnai.com/2008/10/the-top-20-plugins-to-transform-wordpress-in-a-cms/" target="_blank">将Wordpress变为CMS系统的20大插件</a></p>
<p><a href="http://www.leemunroe.com/10-plugins-for-your-wordpress-theme-blog/" target="_blank">你会用在Wordpress主题或博客中的10款插件</a></p>
<p><a href="http://speckyboy.com/2008/11/09/10-wordpress-plugins-to-add-ratings-and-polls-to-your-blog/" target="_blank">10款用于评分和投票的Wordpress插件</a></p>
<p><a href="http://speckyboy.com/2008/01/26/top-30-wordpress-plugins-that-are-actually-useful/" target="_blank">30款确实有用的Wordpress插件</a></p>
<p><a href="http://www.1stwebdesigner.com/resources/130-wordpress-plugins-you-could-ever-need-the-best-of-part-1/" target="_blank">你早晚会用到的130款Wordpress插件-第一部分</a>-<a href="http://www.1stwebdesigner.com/resources/130-wordpress-plugins-you-could-ever-need-the-best-of-part-2/" target="_blank">第二部分</a></p>
<p><a href="http://speckyboy.com/2008/10/06/18-wordpress-plugins-to-add-professionalism-to-your-blog/" target="_blank">18个让你的博客更专业的Wordpress插件</a></p>
<p><a href="http://www.cssleak.com/news/7-Wordpress-Themes-To-Create-Your-Own-CSS-Gallery.html" target="_blank">7个创建你自己的CSS画廊的Wordpress主题</a></p>
<h3>留意更新</h3>
<p><a href="http://feed.feedsky.com/bingo929" target="_blank">订阅彬Go</a>以查看网页设计/前端开发最新教程及资源。</p>
<p>英文原文:<a title="Best of 2008 for developers: 2008+ tips, tricks, scripts and sources!" href="http://aytemir.com/best-of-2008-for-developers-2008-tips-tricks-scripts-and-sources/">Best of 2008 for developers: 2008+ tips, tricks, scripts and sources!</a><br />
翻译原文:<a href="http://blog.bingo929.com/best-of-2008-for-web-developers.html">2008年国外最佳前端开发技巧、脚本及资源总结</a>(暴风彬彬)</p>
<div style="display:block;background-color:#e9faff;border:1px solid #afedff;padding:10px;"><strong><span style="color: #ff0000;">转载声明:</span></strong><br />
原载:<a href="CSS最佳实践:为今后的项目制作空白CSS模板文件">彬Go</a>——集前端开发/网页设计/网站可用性/用户体验于一体的趣味互联网生活<br />
本文链接:<a title="2008年国外最佳前端开发技巧、脚本及资源总结" href="http://blog.bingo929.com/best-of-2008-for-web-developers.html">http://blog.bingo929.com/css-best-practices-css-template-file.html</a><br />
如需转载必须以链接形式注明原载或原文地址，谢谢合作</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.bingo929.com/best-of-2008-for-web-developers.html/feed</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>10种JavaScript特效实例让你的网站更吸引人</title>
		<link>http://blog.bingo929.com/10-ajax-effects-website-fanciness.html</link>
		<comments>http://blog.bingo929.com/10-ajax-effects-website-fanciness.html#comments</comments>
		<pubDate>Wed, 10 Dec 2008 10:00:33 +0000</pubDate>
		<dc:creator>暴风彬彬</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[资源]]></category>
		<category><![CDATA[前端开发]]></category>

		<guid isPermaLink="false">http://blog.bingo929.com/?p=2007</guid>
		<description><![CDATA[　　今天的话题是如何改进自己网站的界面或提高网站的视觉体验，从而让用户记忆犹新。 　　我们有三种主要的方法(从难到易):自己动手写脚本;使用类似于jQuery和mooTools的JavaScript框架(可以... ]]></description>
			<content:encoded><![CDATA[<p>　　今天的话题是如何改进自己网站的界面或提高网站的视觉体验，从而让用户记忆犹新。</p>
<p>　　我们有三种主要的方法(从难到易):自己动手写脚本;使用类似于jQuery和mooTools的JavaScript框架(可以让编写代码变得更容易些);使用能工作于现有的JavaScript框架下的提前预置好的脚本或那种从头开始开发的创建者。这篇文章适合那些打算提高工作效率或不愿意从头开发脚本的人阅读。</p>
<p>　　这里收集了10种<strong>强大</strong>的且<strong>容易上手</strong>的JavaScript特效来改进您的网页站界面，从而得到更多的用户体验。这10种javaScript特效回味你的网站带来意想不到的视觉盛宴，而且安装和使用都比较容易。</p>
<p><strong><span style="color: #ff6600;">您还可以参考以下JavaScript/Ajax相关教程及资源:</span><br />
 </strong>《<a title="10个非常棒的Ajax及Javascript实例资源网站" href="http://blog.bingo929.com/10-sources-ajax-javascript.html">10个非常棒的Ajax及Javascript实例资源网站</a>》<br />
 《<a title="12种Javascript解决常见浏览器兼容问题的方法" href="http://blog.bingo929.com/12-javascript-browser-css-wrong.html">12种Javascript解决常见浏览器兼容问题的方法</a>》<br />
 《<a title="300+Jquery, CSS, MooTools 和 JS的导航菜单资源" href="http://blog.bingo929.com/300-jquery-css-mootools-js-navigation-menus.html">300+Jquery, CSS, MooTools 和 JS的导航菜单资源</a>》 </p>
<h3>1.<a title="Orangegoo Labs page for Graybox" href="http://orangoo.com/labs/GreyBox/">GreyBox</a></h3>
<p><img class="size-medium wp-image-2009  alignnone" title="greybox" src="http://blog.bingo929.com/wp-content/uploads/2008/12/greybox.jpg" alt="JavaScript-greybox" width="500" height="180" /></p>
<p><em>　　GreyBox </em>允许你以<a href="http://javascript.about.com/library/blmodal.htm" target="_blank">模式窗口</a>的形式运行其它网站(类似于弹出式窗口，但又不运行新的浏览器窗口).如果你的网站上有一些其他网站的导出链接，但你又不想让你的用户离开你的网站或不想让他们打开另一个浏览器窗口的话，这真的是一个很好的解决方案。使用GreyBox 非常简单。</p>
<p><span id="more-2007"></span></p>
<p>　　这里是关于GreyBox的关键页面:<a title="Download page of GreyBox" href="http://orangoo.com/labs/GreyBox/Download/">下载页面</a>, <a title="Documentation page of GreyBox - Organgegoo Labs" href="http://orangoo.com/labs/GreyBox/Documentation/">说明页面</a>, <a title="GreyBox Examples page" href="http://orangoo.com/labs/greybox/examples.html">实例</a>, <a title="GreyBox installation instructions" href="http://orangoo.com/labs/greybox/installation.html">安装</a>,和 <a title="Advanced Usage of GreyBox" href="http://orangoo.com/labs/greybox/advance_usage.html">高级用法</a>(如果你是JavaScript高手，看完这个页面中的一些技巧说明，你就能扩展它的函数库了)</p>
<h3>2.<a title="instant.js demo page" href="http://www.netzgesta.de/instant/">instant.js</a></h3>
<p><img class="alignnone size-medium wp-image-2010" title="JavaScript-instant" src="http://blog.bingo929.com/wp-content/uploads/2008/12/instant.jpg" alt="JavaScript-instant" width="500" height="180" /></p>
<p><em>　　instant.js </em>特效会为你的照片动态添加类似偏振(Polaroid-like)的效果(将照片倾斜并添加阴影和边框)。现在我们可以使用这个照片特效模拟Photoshop的数码照片处理了。</p>
<p>　　这个脚本技术可以用于在你的网站上有很多照片，但又不想一个个手动处理的情况。（也许你会使用批量处理，但那只是建立于单一的动作下的，如调整尺寸、裁剪等&#8230;）</p>
<h3>3.<a title="mootable demo page" href="http://joomlicious.com/mootable/">mooTable</a></h3>
<p><img class="alignnone size-medium wp-image-2011" title="JavaScript-mootable" src="http://blog.bingo929.com/wp-content/uploads/2008/12/mootable.jpg" alt="JavaScript-mootable" width="500" height="180" /></p>
<p>　　mooTable允许你为表格中的数据进行排序(不用刷新页面)，利用DOM替代数据库的请求的新式排序方法。使用简单，仅需轻微的配置即可。</p>
<p>　　这个脚本库需要mooTools框架的支持，你可以在<a href="http://mootools.net/download" target="_blank">这里下载</a>。你还可以在<a href="mootools" target="_blank">论坛中的mootools板块</a>寻找一些创建mooTable的方法，会有很多mootools开发者的反馈。</p>
<h3>4.<a title="FancyForm Example section" href="http://lipidity.com/fancy-form/#example">FancyForm</a></h3>
<p><img class="alignnone size-medium wp-image-2012" title="JavaScript-fancyform" src="http://blog.bingo929.com/wp-content/uploads/2008/12/fancyform.jpg" alt="JavaScript-fancyform" width="500" height="180" /></p>
<p><em>　　FancyForm </em>可以取代单调乏味的表单控件如单选按钮和复选框。基本的使用仅需两步:(1)在页面中调用JavaScript文件 (2)为你的表单控件指定类名，如复选框指定class=&#8221;checked&#8221; 或 class=&#8221;unchecked&#8221;，单选框指定class=&#8221;selected&#8221; 和 class=&#8221;unselected&#8221;。非常不显眼的javaScript.</p>
<p>　　该脚本需要<a title="mootools download page" href="http://mootools.net/download">mootools</a>的支持(版本1.1)</p>
<h3>5.<a title="Phat fusion's image menu" href="http://www.phatfusion.net/imagemenu/index.htm">image menu</a></h3>
<p><img class="alignnone size-medium wp-image-2013" title="Javascipt-image-menu" src="http://blog.bingo929.com/wp-content/uploads/2008/12/image-menu.jpg" alt="Javascipt-image-menu" width="500" height="180" /></p>
<p>　　image menu,使用phatfusion开发而成。非常漂亮的横向菜单，当你悬停在某个菜单项上时，图片就会扩展开。</p>
<p>　　你可以使用这个技术为照片的隐藏部分使用蒙太奇效果，但当用户将鼠标悬停在上面是就会显示全部。</p>
<p>　　该脚本需要<a title="mootools download page" href="http://mootools.net/download">mootools</a>的支持(版本1.1)</p>
<h3>6.<a title="AmberJack - Site Tour" href="http://amberjack.org/">AmberJack: Site Tour Creator</a></h3>
<p><img class="alignnone size-medium wp-image-2014" title="JavaScript-amberjack" src="http://blog.bingo929.com/wp-content/uploads/2008/12/amberjack.jpg" alt="JavaScript-amberjack" width="500" height="180" /></p>
<p>　　这是一个轻量级的<a href="http://blog.bingo929.com/category/technology/javascript">JavaScipt</a>库，允许你为网站添加实施快速游览。允许用户事实的在浏览每个页面的时候查看简短的描述。</p>
<p>　　您可以利用这个技术来演示如何让用户使用这个网站，用户只需要点击下一步的按钮，就能了解需要做的每一步。</p>
<h3>7.<a title="ImageFlow 0.8 Demo page" href="http://imageflow.finnrudolph.de/">ImageFlow</a></h3>
<p><img class="alignnone size-medium wp-image-2015" title="javascript-imageflow" src="http://blog.bingo929.com/wp-content/uploads/2008/12/imageflow.jpg" alt="javascript-imageflow" width="500" height="180" /></p>
<p>　　灵感来源于iPod的“coverflow”，ImageFlow是一个用来展示图片集合的特效。用户可以拖动下方的滚动条来控制图片的显示。</p>
<p>　　用户点击图片以后，会转向到现实清晰大图的网页。</p>
<h3>8.<a title="ShadowBox.js demo page" href="http://mjijackson.com/shadowbox/">ShadowBox.js Media viewer</a></h3>
<p><img class="alignnone size-medium wp-image-2016" title="shadowbox" src="http://blog.bingo929.com/wp-content/uploads/2008/12/shadowbox.jpg" alt="shadowbox" width="500" height="180" /></p>
<p>　　ShadowBox是&#8221;完全使用JavaScipt编写的跨浏览器、跨平台、代码简洁且文档完整的媒体查看应用程序&#8221;(怎么样?一口气说下来这么多优点。)</p>
<p>　　ShadowBox区别于其它Model Box（如<a title="Lightbox 2 demo page" href="http://www.huddletogether.com/projects/lightbox2/">Lightbox 2</a>）的地方是，它还支持除图片以外的很多其它文件类型，如flash视频、内嵌式youtube视频、Apple.com预告片和网页(这样能让用户不用转到另一个页面就能完成登录、注册)。这是很有价值的脚本。</p>
<h3>9.<a title="TPJzoom 3 demo page" href="http://valid.tjp.hu/tjpzoom/">TJPzoom 3 &#8211; image magnifier</a></h3>
<p><img class="alignnone size-medium wp-image-2017" title="tjpzoom" src="http://blog.bingo929.com/wp-content/uploads/2008/12/tjpzoom.jpg" alt="" width="500" height="180" /></p>
<p><em>TJPzoom</em>可以让你将某个高清图片的局部放大显示。按下并拖动鼠标的话，可以改变放大区域的尺寸。</p>
<h3>10.<a title="mootools demos - Tips" href="http://demos.mootools.net/Tips">mootools Tips</a></h3>
<p><img class="alignnone size-medium wp-image-2019" title="mootools-tips" src="http://blog.bingo929.com/wp-content/uploads/2008/12/mootools-tips.jpg" alt="" width="500" height="180" /></p>
<p><em>　　mootools Tips</em>是mooTools框架的一部分，它可以让你为用户提供一个高度可配置的工具提示，当用户将鼠标悬停在某个链接或图片上时，一些关于这个元素的附加的提示信息就会在屏幕上显示出来。</p>
<p>　　一些可以调节的方法:<a href="http://blog.bingo929.com/category/technology/css">CSS</a> 样式(可以修改默认的黑背景白文字)、渐变速度、工具提示在屏幕上显示的风格、你希望工具提示显示多久。这个脚本需要<a title="mootools download" href="http://mootools.net/download">mootools</a>框架的支持。</p>
<p>英文原文:<a title="Permanent Link to 10 JavaScript Effects to Boost Your Website’s Fanciness Factor" rel="bookmark" href="http://sixrevisions.com/rapid-development/10_ajax_effects_website_fanciness/">10 JavaScript Effects to Boost Your Website’s Fanciness Factor</a><br />
 翻译原文:<a href="http://blog.bingo929.com/10-ajax-effects-website-fanciness.html">10种JavaScript特效实例让你的网站更吸引人</a></p>
<p style="display:block;background-color:#e9faff;border:1px solid #afedff;padding:10px;"><strong><span style="color: #ff0000;">转载声明:</span></strong><br />
 原载:<a href="http://blog.bingo929.com/">彬Go</a><br />
 本文链接:<a title="10种JavaScript特效实例让你的网站更吸引人" href="http://blog.bingo929.com/10-ajax-effects-website-fanciness.html">http://blog.bingo929.com/10-ajax-effects-website-fanciness.html</a><br />
 如需转载必须以链接形式注明原载或原文地址，谢谢合作</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bingo929.com/10-ajax-effects-website-fanciness.html/feed</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
		<item>
		<title>推荐12款可用于前端开发的免费文本编辑器</title>
		<link>http://blog.bingo929.com/12-free-text-editors-for-web-developer.html</link>
		<comments>http://blog.bingo929.com/12-free-text-editors-for-web-developer.html#comments</comments>
		<pubDate>Tue, 18 Nov 2008 13:27:38 +0000</pubDate>
		<dc:creator>暴风彬彬</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[资源]]></category>
		<category><![CDATA[前端开发]]></category>

		<guid isPermaLink="false">http://blog.bingo929.com/?p=1891</guid>
		<description><![CDATA[　　作为前端开发工程师,你有能力编写复杂的代码，但你真正需要的是你最喜爱的，可信赖的文本编辑器。你可以使用一个简单的，如微软的记事本，但往往比较有益的文字编辑器具有语法突... ]]></description>
			<content:encoded><![CDATA[<p>　　作为前端开发工程师,你有能力编写复杂的代码，但你真正需要的是你最喜爱的，可信赖的文本编辑器。你可以使用一个简单的，如微软的记事本，但往往比较有益的文字编辑器具有语法突出/高亮功能，支持多种语言，包含一个强大的查找和替换功能，和其他功能和选项，让你在编写代码的时候更加容易。</p>
<p>　　如果你在寻找一个优秀的，免费的文本编辑器。下面收集了20款免费的文本编辑器，包含适用于Windows ， Mac或Linux操作系统的。一句话，你能找到你想要的文本编辑器。</p>
<p><strong>您还可以参考以下前端开发相关资源:</strong><br />
 《<a title="15个前端开发/网页设计师必备的Bookmarklet" href="http://blog.bingo929.com/15-bookmarklets.html">15个前端开发/网页设计师必备的Bookmarklet</a>》<br />
 《<a title="精选15个国外CSS框架" href="http://blog.bingo929.com/css-frameworks-15.html">精选15个国外CSS框架</a>》 <br />
 《<a title="Web前端开发必备手册下载" href="http://blog.bingo929.com/cheat-sheets-for-web-develop.html">Web前端开发必备手册下载</a>》 <br />
 《<a title="10个非常棒的Ajax及Javascript实例资源网站" href="http://blog.bingo929.com/10-sources-ajax-javascript.html">10个非常棒的Ajax及Javascript实例资源网站</a>》 </p>
<h3>1.<strong><a href="http://bluefish.openoffice.nl/">Bluefish Editor</a></strong></h3>
<p>(Mac, Linux)</p>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2008/11/12-text-editor/13-02_bluefish_editor.png" alt="css-文本-编辑器" width="500" height="250" /></p>
<p>　　Bluefish Editor 是一个面向程序员和网页设计师、强大开源的文本编辑器。作为一种快速，轻巧的文本编辑器，它支持500多种文件格式。它有一个内置的函数参考浏览器（ PHP，Python，CSS和HTML ） ，这样你可以快速地了解特别的语法。</p>
<p><span id="more-1891"></span></p>
<h3>2.<strong><a href="http://notepad-plus.sourceforge.net/uk/site.htm">NOTEPAD++</a></strong></h3>
<p><span style="font-weight: normal;">(Windows)</span></p>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2008/11/12-text-editor/notepad.png" alt="javascript-文本-编辑器" width="500" height="250" /></p>
<p>　　Notepad++ 是一款非常有特色的编辑器—— ①、内置支持多达 27 种语法高亮度显示(囊括各种常见的源代码、脚本，值得一提的是，完美支持 .nfo 文件查看)，也支持自定义语言； ②、可自动检测文件类型，根据关键字显示节点，节点可自由折叠/打开，代码显示得非常有层次感！这是此软件最具特色的体现之一； ③、可打开双窗口，在分窗口中又可打开多个子窗口，允许快捷切换全屏显示模式(F11)，支持鼠标滚轮改变文档显示比例，等等； ④、提供数个特色东东，如 邻行互换位置、宏功能，等等… 现在网上有很多文件编辑器，这个却是不可多得的一款，不论是日常使用还是手写编程代码，都能让你体会到它独有的优势和方便。</p>
<h3>3.<a href="http://www.jedit.org/">jEdit</a></h3>
<p>(Windows, Mac, Linux)</p>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2008/11/12-text-editor/13-12_jedit.png" alt="html-文本-编辑器" width="500" height="250" /></p>
<p>　　jEdit是一个非常强大和灵活的文本编辑器.在java开发过程中,我一直使用eclipse,UltraEdit和jEdit.经常在它们之间来回切换.因为ultraEdit太简单,而eclipse又太复杂,所以现在我要介绍的就是简单又复杂的jEdit,它将大大加速你的编程，我会将重点放在其内嵌的Beanshell脚本上。</p>
<h3>4.<a href="http://www.activestate.com/Products/komodo_ide/komodo_edit.mhtml" target="_blank">Komodo Edit</a></h3>
<p>(Windows, Mac, Linux)</p>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2008/11/12-text-editor/13-11_komodo_edit.png" alt="前端开发-文本编辑器" width="500" height="250" /></p>
<p>　　Komodo 是一个跨平台支持多种程序语言的Integrated Development Environment (IDE)软件，目前他支持了在Windows与Linux上，Perl、Python及JavaScript等的程序语言开发，以及多种程序语言语法不 同颜色标注。</p>
<h3>5.<a href="http://www.scintilla.org/SciTE.html" target="_blank">SciTE</a></h3>
<p>(Windows, Linux)</p>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2008/11/12-text-editor/13-10_scite.png" alt="文本编辑器-下载" width="500" height="250" /></p>
<p>　　SciTE除了有语法高亮，标签浏览，折叠，自动完成这些功能外，还具有输出窗口（对于编程的人来说很方便的），自定义工具，最重要的是发现它速度相当快。</p>
<h3>6.<a href="http://www.contexteditor.org/" target="_blank">ConTEXT</a></h3>
<p>(Windows)</p>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2008/11/12-text-editor/13-09_context.png" alt="文本编辑器-高亮" width="500" height="250" /></p>
<p>　　ConTEXT 是另一个出色，体积小巧，免费的文字编辑器，适用于Windows操作系统。它包含许多方便的功能，如文字整理 ，导出等配置选项。</p>
<h3>7.<a href="http://www.crimsoneditor.com/" target="_blank">Crimson Editor</a></h3>
<p>(Windows)</p>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2008/11/12-text-editor/13-08_crimson_editor.png" alt="免费-文本编辑器" width="500" height="250" /></p>
<p><br class="spacer_" /></p>
<p>　　Crimson Editor是一个免费的文本编辑器，用于Microsoft Windows系统，可进行文本、代码的编辑。</p>
<p>　　主要功能包括： * 书签式界面；* 语法高亮；* 多重撤销/重做；* 括号匹配； * 自动缩进；* 可直接编辑 FTP上的文件；* 支持 Unicode；* 还可使用巨集；* 内建计算器； * 带有基本的数学函数、日期函数；</p>
<h3>8.<a href="http://www.gnu.org/software/emacs/" target="_blank">GNU Emacs</a></h3>
<p>(Windows, Mac, Linux)</p>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2008/11/12-text-editor/13-07_gnu_emacs.png" alt="文本编辑器" width="500" height="250" /></p>
<p>　　GNU Emacs是Emacs编辑器家族中最受欢迎、传播范围最广、也是最强大和最灵活的UNIX文本编辑器。与其他文本编辑器的重要区别在于它是一个完备的工 作环境，使用Emacs可以完成各种日常工作。本书循序渐进地讲述Emacs的入门知识，随着本书的深入，读者的Emacs使用水平将从初级（只会进行简 单的文字编辑）提高到足以完成相当复杂的定制和程序设计任务的阶段。</p>
<h3>9.<a href="http://projects.gnome.org/gedit/" target="_blank">gedit</a></h3>
<p>(Linux)</p>
<p>９<img src="http://blog.bingo929.com/wp-content/uploads/2008/11/12-text-editor/13-06_gedit.png" alt="文本编辑器" width="500" height="250" /></p>
<p>　　Gedit是Linux GNOME桌面上一款小巧的文本编辑器，它的外观看上去很简单。它仅在工具栏上具有一些图标，以及一排基本的菜单，有些像Linux下的记事本。但如果你深入一些探究的话，就会发现其实它还大有玄机。支持多种文件类型的彩色编码语句，还有高度的自定义特性以及恢复到已保存的文件版本和拼写检查。</p>
<h3>10.<a href="http://sourceforge.net/projects/caditor/" target="_blank">Caditor</a></h3>
<p>(Windows)</p>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2008/11/12-text-editor/13-05_caditor.jpg" alt="文本编辑器" width="500" height="250" /></p>
<p>Caditor是一个简单易用的文字编辑器为您的个人电脑。</p>
<h3>11.<a href="http://tuppis.com/smultron/" target="_blank">Smultron</a></h3>
<p>(Mac)</p>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2008/11/12-text-editor/13-04_smultron.jpg" alt="文本编辑器" width="500" height="250" /></p>
<p><br class="spacer_" /></p>
<p>Smultron在瑞典语中是一种野生草莓的名字。她是一个开源的文本编辑器，也是一个美味的的文本编辑器。</p>
<p>*按住Command和Option键的同时拖动鼠标，可以拖拽滚动屏幕；<br />
 *可以同时在多个文件中进行查找和替换，并支持正则表达式；<br />
 *可以仅打印选中部分的文本，并且可以打印语法着色；<br />
 *设置自动完成（Auto-completion），或者按功能键F5可以显示近似匹配的单词；<br />
 *显示通常不可见的字符（换行符或Tab）；<br />
 *显示或隐藏行号；<br />
 *全屏幕操作。这时屏幕上只会显示你正在编辑的文档，使你专心于当下的任务。<br />
 *选择是否折行（Line Wrap）显示；<br />
 *快捷键Command+Option+F进入即时查找（Live Find）状态。在查找框中输入想要搜索的内容，就会高亮度显示匹配的内容。利用快捷键Command+G定位到下一匹配处。</p>
<h3>12.<a href="http://www.barebones.com/products/textwrangler/" target="_blank">TextWrangler</a></h3>
<p>(Mac)</p>
<p><br class="spacer_" /></p>
<p><img src="http://blog.bingo929.com/wp-content/uploads/2008/11/12-text-editor/13-03_text_wrangler.jpg" alt="文本编辑器" width="500" height="250" /></p>
<p>免费的纯文本和编程编辑器，支持Unicod文件格式。</p>
<p>　　彬Go会经常更新网页设计/前端开发类教程及资源，如果您想随时关注本博客的最新更新教程/资源，欢迎RSS<a href="http://feed.feedsky.com/bingo929" target="_blank">订阅本博客</a>，以便您能第一时间浏览彬Go的最新网页设计教程。<a href="http://feed.feedsky.com/bingo929" target="_blank"><img src="http://img.feedsky.com/images/icon_sub_c1s16.gif" alt="订阅彬Go" width="50" height="16" /></a> </p>
<p>英文原文:<a title="Permanent Link to 12 Excellent Free Text Editors for Coders" rel="bookmark" href="http://sixrevisions.com/tools/12-excellent-free-text-editors-for-coders/">12 Excellent Free Text Editors for Coders</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bingo929.com/12-free-text-editors-for-web-developer.html/feed</wfw:commentRss>
		<slash:comments>52</slash:comments>
		</item>
		<item>
		<title>Web前端开发必备手册下载</title>
		<link>http://blog.bingo929.com/cheat-sheets-for-web-develop.html</link>
		<comments>http://blog.bingo929.com/cheat-sheets-for-web-develop.html#comments</comments>
		<pubDate>Mon, 17 Nov 2008 04:00:21 +0000</pubDate>
		<dc:creator>暴风彬彬</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[资源]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Mootools]]></category>
		<category><![CDATA[前端开发]]></category>

		<guid isPermaLink="false">http://blog.bingo929.com/?p=1879</guid>
		<description><![CDATA[今天暴风彬彬要向大家推荐一些前端开发时必备的参考手册，它们能够让你在开发页面的时候查询一些必要的语法。这些手册(Cheat sheet)包括目前比较流行的编程语言，比如jQuery, Mootools, Prototype,... ]]></description>
			<content:encoded><![CDATA[<p style="float:left;margin-right:10px;"><a href="http://blog.bingo929.com/wp-content/uploads/2008/11/cheatsheets.gif"><img class="alignnone size-medium wp-image-1880" style="border:0px;" title="前端开发-手册" src="http://blog.bingo929.com/wp-content/uploads/2008/11/cheatsheets.gif" alt="前端开发-手册" width="200" height="133" /></a></p>
<p>今天暴风彬彬要向大家推荐一些前端开发时必备的参考手册，它们能够让你在开发页面的时候查询一些必要的语法。这些手册(Cheat sheet)包括目前比较流行的编程语言，比如jQuery, Mootools, Prototype, CSS,HTML,Django等&#8230;Cheat sheet这个词组如果直译成中文，意思大概是&#8221;作弊小抄&#8221;之类的词，但Cheat sheet这个词的实际意思已经并非是贬义了，虽然中文还没有实际的对应词能够很好的翻译&#8221;Cheat sheet&#8221;，但大致意思就是用于参考的简洁手册，就像是考试作弊时将必备的数学公式等写在一张纸上，以便考试时查询。</p>
<p><span id="more-1879"></span></p>
<p>如果您有其它暴风彬彬没有提到的参考手册，欢迎<a href="#respond">留言分享</a>。</p>
<p>彬Go会经常更新<strong>前端开发/网页设计等相关技术及教程文章</strong>，欢迎<a href="http://feed.feedsky.com/bingo929" target="_blank"><strong>订阅本博客</strong></a>来及时浏览本博客的<strong>最新教程及资源</strong>。</p>
<h3>1.<a href="http://www.addedbytes.com/cheat-sheets/css-cheat-sheet/" target="_blank">CSS Cheat Sheet</a></h3>
<p><a href="http://www.addedbytes.com/cheat-sheets/css-cheat-sheet/" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2008/11/web-develop-cheat-sheets/css.png" alt="CSS手册-下载" width="480" height="120" /></a></p>
<h3>2.<a href="http://floele.flyspray.org/htmlcheatsheet.pdf" target="_blank">HTML Cheat Sheet</a></h3>
<p><a href="http://floele.flyspray.org/htmlcheatsheet.pdf" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2008/11/web-develop-cheat-sheets/HTML.png" alt="HTML手册-下载" width="480" height="120" /></a></p>
<h3>3.<a href="http://www.addedbytes.com/cheat-sheets/javascript-cheat-sheet/" target="_blank">Javascript Cheat Sheet</a></h3>
<p><a href="http://www.addedbytes.com/cheat-sheets/javascript-cheat-sheet/" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2008/11/web-develop-cheat-sheets/javascript.png" alt="javascript手册-下载" width="480" height="120" /></a></p>
<h3>4.<a href="http://www.gscottolson.com/weblog/2008/01/11/jquery-cheat-sheet/" target="_blank"> jQuery Cheat Sheet</a></h3>
<p><a href="http://www.gscottolson.com/weblog/2008/01/11/jquery-cheat-sheet/" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2008/11/web-develop-cheat-sheets/jQuery.png" alt="jQuery手册-下载" width="480" height="120" /></a></p>
<h3>5.<a href="http://mediavrog.net/blog/2008/06/11/mootools/mootools-12-cheat-sheet/" target="_blank">Mootools Cheat Sheet</a></h3>
<p><a href="http://mediavrog.net/blog/2008/06/11/mootools/mootools-12-cheat-sheet/" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2008/11/web-develop-cheat-sheets/mootools.png" alt="mootools手册-下载" width="480" height="120" /></a></p>
<h3>6.<a href="http://www.mercurytide.co.uk/whitepapers/django-cheat-sheet/" target="_blank">Django Cheat Sheet</a></h3>
<p><a href="http://www.mercurytide.co.uk/whitepapers/django-cheat-sheet/" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2008/11/web-develop-cheat-sheets/django.png" alt="Django手册-下载" width="480" height="120" /></a></p>
<h3>7.<a href="http://developer.yahoo.com/yui/#cheatsheets" target="_blank">YUI Cheat Sheet</a></h3>
<p><a href="http://developer.yahoo.com/yui/#cheatsheets" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2008/11/web-develop-cheat-sheets/yui.png" alt="YUI手册-下载" width="480" height="120" /></a></p>
<h3>8.<a href="http://thinkweb2.com/projects/prototype/prototype-1602-cheat-sheet/" target="_blank">Prototype Cheat Sheet</a></h3>
<p><a href="http://thinkweb2.com/projects/prototype/prototype-1602-cheat-sheet/" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2008/11/web-develop-cheat-sheets/prototype.png" alt="Prototype手册-下载" width="480" height="120" /></a></p>
<h3>9.<a href="http://huseyint.com/projeler/extjs-cheat-sheets/" target="_blank">extJs Cheat Sheet</a></h3>
<p><a href="http://huseyint.com/projeler/extjs-cheat-sheets/" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2008/11/web-develop-cheat-sheets/extjs.png" alt="extJs手册-下载" width="480" height="120" /></a></p>
<h3>10.<a href="http://www.slash7.com/articles/2006/04/22/scriptaculous-cheat-sheet-1" target="_blank">Scriptaculous Cheat Sheet</a></h3>
<p><a href="http://www.slash7.com/articles/2006/04/22/scriptaculous-cheat-sheet-1" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2008/11/web-develop-cheat-sheets/scriptaculous.png" alt="Scriptaculous手册-下载" width="480" height="120" /></a></p>
<h3>11.<a href="http://www.addedbytes.com/cheat-sheets/regular-expressions-cheat-sheet/" target="_blank">正则表达式手册下载</a></h3>
<p><a href="http://www.addedbytes.com/cheat-sheets/regular-expressions-cheat-sheet/" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2008/11/web-develop-cheat-sheets/regular.png" alt="正则表达式手册-下载" width="480" height="120" /></a></p>
<p><br class="spacer_" /></p>
<p><span style="font-size: medium;"><strong><span style="font-size: small;">下面是一些关于</span><span style="color: #3366ff;">后台开发</span><span style="font-size: small;">和</span><span style="color: #3366ff;"><a href="http://blog.bingo929.com/category/seo">SEO</a></span><span style="font-size: small;">的相关手册(Cheat sheet)</span></strong></span></p>
<h3>1.<a href="http://www.seomoz.org/blog/the-web-developers-seo-cheat-sheet" target="_blank">SEO Cheat Sheet</a></h3>
<p><a href="http://www.seomoz.org/blog/the-web-developers-seo-cheat-sheet" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2008/11/web-develop-cheat-sheets/seo.png" alt="SEO手册-下载" width="480" height="120" /></a></p>
<h3>2.<a href="http://www.addedbytes.com/cheat-sheets/mysql-cheat-sheet/" target="_blank">MySQL Cheat Sheet</a></h3>
<p><a href="http://www.addedbytes.com/cheat-sheets/mysql-cheat-sheet/" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2008/11/web-develop-cheat-sheets/mysql.png" alt="MySQL手册-下载" width="480" height="120" /></a></p>
<h3>3.<a href="http://www.addedbytes.com/cheat-sheets/php-cheat-sheet/" target="_blank">PHP Cheat Sheet</a></h3>
<p><a href="http://www.addedbytes.com/cheat-sheets/php-cheat-sheet/" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2008/11/web-develop-cheat-sheets/php.png" alt="PHP手册-下载" width="480" height="120" /></a></p>
<h3>4.<a href="http://www.addedbytes.com/apache/mod_rewrite-cheat-sheet/" target="_blank">Mod_Rewrite Cheat Sheet</a></h3>
<p><a href="http://www.addedbytes.com/apache/mod_rewrite-cheat-sheet/" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2008/11/web-develop-cheat-sheets/mod-rewrite.png" alt="Mod_Rewrite手册-下载" width="480" height="120" /></a></p>
<h3>5.<a href="http://www.addedbytes.com/cheat-sheets/ruby-on-rails-cheat-sheet/" target="_blank">Ruby on Rails Cheat Sheet</a></h3>
<p><a href="http://www.addedbytes.com/cheat-sheets/ruby-on-rails-cheat-sheet/" target="_blank"><img src="http://blog.bingo929.com/wp-content/uploads/2008/11/web-develop-cheat-sheets/ruby.png" alt="Ruby on Rails手册-下载" width="480" height="120" /></a></p>
<p style="display:block;background-color:#e9faff;border:1px solid #afedff;padding:10px;"><strong><span style="color: #ff0000;">转载声明:</span></strong><br />
原载:<a href="http://blog.bingo929.com/">彬Go</a><br />
本文链接:<a title="精选31个网站界面设计实践教程" href="http://blog.bingo929.com/cheat-sheets-for-web-develop.html">http://blog.bingo929.com/cheat-sheets-for-web-develop.html</a><br />
如需转载必须以链接形式注明原载或原文地址，谢谢合作</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bingo929.com/cheat-sheets-for-web-develop.html/feed</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
	</channel>
</rss>

