Permalink
Browse files

add pattern/asynchronous

  • Loading branch information...
ruanyf committed Dec 21, 2012
1 parent 5067b48 commit fc6123ccb02365ed470b57f354a929760205a722
View
@@ -10,6 +10,7 @@ chapters:
- htmlapi
- jquery
- tool
+- pattern
- algorithm
grammar: 基本语法
@@ -18,4 +19,5 @@ dom: DOM
htmlapi: HTML5 API
algorithm: 算法
jquery: jQuery
+pattern: 模式
tool: 开发工具
View
@@ -38,7 +38,7 @@ <h1>
<ul class="right">
<li >
- <a href="#">TOP &#8679;</a>
+ <a href="#">TOP <i class="foundicon-up-arrow"></i></a>
</li>
</ul>
View
@@ -1,6 +1,7 @@
/* general */
-p,li,code {font-size:160%;line-height:160%;}
+p,li {font-size:160%;line-height:160%;}
+code {font-size:150%;line-height:150%;}
li p {font-size:100%;}
ul {margin-left:2em;}
@@ -200,3 +201,222 @@ font-family: "Consolas", "Courier New", "Courier", "FreeMono", monospace;
.highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */
.highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */
.highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */
+
+/* font-icons */
+
+/* font-face */
+@font-face {
+ font-family: "GeneralEnclosedFoundicons";
+ src: url("../fonts/general_enclosed_foundicons.eot");
+ src: url("../fonts/general_enclosed_foundicons.eot?#iefix") format("embedded-opentype"), url("../fonts/general_enclosed_foundicons.woff") format("woff"), url("../fonts/general_enclosed_foundicons.ttf") format("truetype"), url("../fonts/general_enclosed_foundicons.svg#GeneralEnclosedFoundicons") format("svg");
+ font-weight: normal;
+ font-style: normal;
+}
+
+/* global foundicon styles */
+[class*="foundicon-"] {
+ display: inline;
+ width: auto;
+ height: auto;
+ line-height: inherit;
+ vertical-align: baseline;
+ background-image: none;
+ background-position: 0 0;
+ background-repeat: repeat;
+}
+
+[class*="foundicon-"]:before {
+ font-family: "GeneralEnclosedFoundicons";
+ font-weight: normal;
+ font-style: normal;
+ text-decoration: inherit;
+}
+
+/* icons */
+.foundicon-settings:before {
+ content: "\f000";
+}
+
+.foundicon-heart:before {
+ content: "\f001";
+}
+
+.foundicon-star:before {
+ content: "\f002";
+}
+
+.foundicon-plus:before {
+ content: "\f003";
+}
+
+.foundicon-minus:before {
+ content: "\f004";
+}
+
+.foundicon-checkmark:before {
+ content: "\f005";
+}
+
+.foundicon-remove:before {
+ content: "\f006";
+}
+
+.foundicon-mail:before {
+ content: "\f007";
+}
+
+.foundicon-calendar:before {
+ content: "\f008";
+}
+
+.foundicon-page:before {
+ content: "\f009";
+}
+
+.foundicon-tools:before {
+ content: "\f00a";
+}
+
+.foundicon-globe:before {
+ content: "\f00b";
+}
+
+.foundicon-home:before {
+ content: "\f00c";
+}
+
+.foundicon-quote:before {
+ content: "\f00d";
+}
+
+.foundicon-people:before {
+ content: "\f00e";
+}
+
+.foundicon-monitor:before {
+ content: "\f00f";
+}
+
+.foundicon-laptop:before {
+ content: "\f010";
+}
+
+.foundicon-phone:before {
+ content: "\f011";
+}
+
+.foundicon-cloud:before {
+ content: "\f012";
+}
+
+.foundicon-error:before {
+ content: "\f013";
+}
+
+.foundicon-right-arrow:before {
+ content: "\f014";
+}
+
+.foundicon-left-arrow:before {
+ content: "\f015";
+}
+
+.foundicon-up-arrow:before {
+ content: "\f016";
+}
+
+.foundicon-down-arrow:before {
+ content: "\f017";
+}
+
+.foundicon-trash:before {
+ content: "\f018";
+}
+
+.foundicon-add-doc:before {
+ content: "\f019";
+}
+
+.foundicon-edit:before {
+ content: "\f01a";
+}
+
+.foundicon-lock:before {
+ content: "\f01b";
+}
+
+.foundicon-unlock:before {
+ content: "\f01c";
+}
+
+.foundicon-refresh:before {
+ content: "\f01d";
+}
+
+.foundicon-paper-clip:before {
+ content: "\f01e";
+}
+
+.foundicon-video:before {
+ content: "\f01f";
+}
+
+.foundicon-photo:before {
+ content: "\f020";
+}
+
+.foundicon-graph:before {
+ content: "\f021";
+}
+
+.foundicon-idea:before {
+ content: "\f022";
+}
+
+.foundicon-mic:before {
+ content: "\f023";
+}
+
+.foundicon-cart:before {
+ content: "\f024";
+}
+
+.foundicon-address-book:before {
+ content: "\f025";
+}
+
+.foundicon-compass:before {
+ content: "\f026";
+}
+
+.foundicon-flag:before {
+ content: "\f027";
+}
+
+.foundicon-location:before {
+ content: "\f028";
+}
+
+.foundicon-clock:before {
+ content: "\f029";
+}
+
+.foundicon-folder:before {
+ content: "\f02a";
+}
+
+.foundicon-inbox:before {
+ content: "\f02b";
+}
+
+.foundicon-website:before {
+ content: "\f02c";
+}
+
+.foundicon-smiley:before {
+ content: "\f02d";
+}
+
+.foundicon-search:before {
+ content: "\f02e";
+}
View
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,15 @@
+<?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" > <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%">
+<defs >
+<font id="generalenclosedfoundicons" horiz-adv-x="955" ><font-face
+ font-family="General Enclosed Foundicons"
+ units-per-em="1000"
+ panose-1="0 0 0 0 0 0 0 0 0 0"
+ ascent="1000"
+ descent="0"
+ alphabetic="0" />
+<missing-glyph horiz-adv-x="250" />
+<glyph unicode=" " glyph-name="space" horiz-adv-x="250" />
+<glyph unicode="~" glyph-name="asciitilde" horiz-adv-x="1000" />
+</font>
+</defs>
+</svg>
Binary file not shown.
Binary file not shown.
View
@@ -3,19 +3,73 @@ title: 语法概述
layout: page
category: grammar
date: 2012-12-14
-modifiedOn: 2012-12-14
+modifiedOn: 2012-12-15
---
## typeof 运算符
该运算符返回一个值的类型,可能有以下结果:
- Undefined: undefined
+
+{% highlight javascript %}
+
+> typeof undefined
+ "undefined"
+
+{% endhighlight %}
+
- Null: object
+
+{% highlight javascript %}
+
+> typeof null
+ "object"
+
+{% endhighlight %}
+
- Boolean: boolean
+
+{% highlight javascript %}
+
+> typeof false
+ "boolean"
+
+{% endhighlight %}
+
- Number: number
+
+{% highlight javascript %}
+
+> typeof 123
+ "number"
+
+{% endhighlight %}
+
- String: string
+
+{% highlight javascript %}
+
+> typeof "123"
+ "string"
+
+{% endhighlight %}
+
- Function: function
-- 其他: object
+{% highlight javascript %}
+
+> typeof print
+ "function"
+
+{% endhighlight %}
+
+- 其他值: object
+
+{% highlight javascript %}
+
+> typeof window
+ "object"
+
+{% endhighlight %}
View
@@ -2,7 +2,7 @@
layout: homepage
title: Javascript 标准教程
date: 2012-11-18
-modifiedOn: 2012-12-15
+modifiedOn: 2012-12-22
---
<h2 id="grammar">基本语法</h2>
@@ -39,6 +39,10 @@ modifiedOn: 2012-12-15
- [性能测试(Benchmark)](tool/benchmark.html)
- [PhantomJS](tool/phantomjs.html)
+<h2 id="pattern">模式</h2>
+
+- [异步编程](pattern/asynchronous.html)
+
<h2 id="algorithm">算法</h2>
* [排序](algorithm/sorting.html)
Oops, something went wrong.

0 comments on commit fc6123c

Please sign in to comment.