nodejs教程:
<a href="http://www.nodebeginner.org/index-zh-cn.html#event-driven-callbacks">http://www.nodebeginner.org/index-zh-cn.html#event-driven-callbacks</a>
官網
<a href="http://nodejs.org/#">http://nodejs.org/#</a>
安裝
<a href="https://github.com/joyent/node/wiki/installation">https://github.com/joyent/node/wiki/installation</a>
understanding node.js
<a href="http://debuggable.com/posts/understanding-node-js:4bd98440-45e4-4a9a-8ef7-0f7ecbdd56cb">http://debuggable.com/posts/understanding-node-js:4bd98440-45e4-4a9a-8ef7-0f7ecbdd56cb</a>
安裝nodejs的時候會出現這個錯誤:
file "./configure", line 266
o['default_configuration'] = 'debug' if options.debug else 'release'
^
syntaxerror: invalid syntax
這個是你的python版本不夠或者沒有安裝
<a href="https://groups.google.com/forum/#!msg/nodejs/b8ncojauipc/xixcmnsmoqgj">https://groups.google.com/forum/#!msg/nodejs/b8ncojauipc/xixcmnsmoqgj</a>
請去這邊安裝:
<a href="http://python.org/download/">http://python.org/download/</a>
出錯:
importerror: no module named bz2
<a href="http://297020555.blog.51cto.com/1396304/593224">http://297020555.blog.51cto.com/1396304/593224</a>
了解函數式程式設計:
<a href="http://steve-yegge.blogspot.jp/2006/03/execution-in-kingdom-of-nouns.html">http://steve-yegge.blogspot.jp/2006/03/execution-in-kingdom-of-nouns.html</a>
server是單程序的,前往不能調用阻塞程序的操作
npm安裝要在本目錄下安裝,使用npm install xxx
會在本目錄下自動生成node_modules目錄,這樣才算安裝成功
nodejs的事件機制
nodejs是事件驅動的,你可以在事件上進行監聽,比如request就可以注冊兩個end和data事件,哪些對象有哪些事件可以監聽應該看。更多知識可以看《nodejs手冊中文版》
下載下傳位址:
<a href="http://ishare.iask.sina.com.cn/f/21982872.html">http://ishare.iask.sina.com.cn/f/21982872.html</a>