for BackendJavaScript
Caesar Chiclonn
13年1月14⽇日星期⼀一
askSome QuestionQuestionQuestion
13年1月14⽇日星期⼀一
Caesar Chi
clonncd13年1月14⽇日星期⼀一
from BackendJavaScript
Caesar Chiclonn
13年1月14⽇日星期⼀一
Somethings you
Should Know
13年1月14⽇日星期⼀一
is {Java Script}
13年1月14⽇日星期⼀一
install won t
detail tell
13年1月14⽇日星期⼀一
Most of them are libraries. Not JavaScript.13年1月14⽇日星期⼀一
toHow check13年1月14⽇日星期⼀一
if then
13年1月14⽇日星期⼀一
if
then
13年1月14⽇日星期⼀一
if
else
global === window
13年1月14⽇日星期⼀一
Rule
• global equals global that is
• global equals window that is
13年1月14⽇日星期⼀一
a different parts
{Java Script}
13年1月14⽇日星期⼀一
script source loaded
13年1月14⽇日星期⼀一
jQuery is not defined
13年1月14⽇日星期⼀一
k2.js
var abc=123;
caption.js
var abc=456;
13年1月14⽇日星期⼀一
html script
var abc=789;
k2.js
var abc=123;
caption.js
var abc=456;
13年1月14⽇日星期⼀一
載⼊入無誤
solved loading JS source issue
⽂文字
13年1月14⽇日星期⼀一
• Require
• module
13年1月14⽇日星期⼀一
{Java Script}follow
13年1月14⽇日星期⼀一
{Java Script}has
13年1月14⽇日星期⼀一
• manage modules
• dependency is fun
• publish, install module is easy
• more than 8000 modules
13年1月14⽇日星期⼀一
the ART parts
{Java Script}
13年1月14⽇日星期⼀一
variable, function, Array, Object, “What is this”
[
]
{ shouldKnow:
};13年1月14⽇日星期⼀一
太極拳只重其義,不重其招,你忘記所有招式,就練成太極拳了!
13年1月14⽇日星期⼀一
leave your functionCallback
13年1月14⽇日星期⼀一
JSON is Rock, and it won’t kill you
13年1月14⽇日星期⼀一
{ response: “hello world”}
I am JSON’s friend, NOT Freddy13年1月14⽇日星期⼀一
give {Java Script}
Power 13年1月14⽇日星期⼀一
give {Java Script}
Power 13年1月14⽇日星期⼀一
Utility
•util
13年1月14⽇日星期⼀一
Server
•http
•https
•net
•dns
13年1月14⽇日星期⼀一
data / files
•file system
•stream
13年1月14⽇日星期⼀一
data / files
•file system
•stream
13年1月14⽇日星期⼀一
process
•process
•util
13年1月14⽇日星期⼀一
is
{Java Script}Power
13年1月14⽇日星期⼀一
We can DO It!
13年1月14⽇日星期⼀一
painNo gain
13年1月14⽇日星期⼀一
with“Of Course”
13年1月14⽇日星期⼀一
http://nodetoolbox.com/
http://nodezoo.com/
13年1月14⽇日星期⼀一
modulesSome
could DOmodules
13年1月14⽇日星期⼀一
http(s)
spdy+
13年1月14⽇日星期⼀一
http(s)
spdy+
13年1月14⽇日星期⼀一
http(s)
file system+
13年1月14⽇日星期⼀一
http(s)
file system+stream
13年1月14⽇日星期⼀一
web serverrestful server
13年1月14⽇日星期⼀一
realtime server
+
13年1月14⽇日星期⼀一
sass base, like compass
+
13年1月14⽇日星期⼀一
Web Driver+
auto test13年1月14⽇日星期⼀一
request+
+
13年1月14⽇日星期⼀一
This is Y!
13年1月14⽇日星期⼀一
This is Y(-) (-)!tw.yah00.com
access cookiesteal anything:D
13年1月14⽇日星期⼀一
This is Y(-) (-)!tw.yah00.com
access cookiesteal anything:D
13年1月14⽇日星期⼀一
youWhy
USE
13年1月14⽇日星期⼀一
{Java Script}
13年1月14⽇日星期⼀一
Learning
• http://nodejs.tw
• http://book.nodejs.tw
• http://javascript.tw
• http://jsdc.tw
13年1月14⽇日星期⼀一
JSDC 2013 13年1月14⽇日星期⼀一
Thanksclonncd
13年1月14⽇日星期⼀一