摘要:
var obj = { p1 : 1, p2 : 2};(function(_/* 这个东东是地址的应用哦 */){ _.p1 = 3, _.p2 = 4})(obj)var i = 2;(function(i /*这个是复制值*/){ i = 3; })(i)//obj.p1 = 3 .. obj.p2 = 4;//i = 2;//白学了这么就,就记得西牛叔上有说过这东西 ,传object是传地址 ,基本的 string, number ,boolean, 是传复制值 阅读全文
摘要:
//http://www.nodebeginner.org/index-zh-cn.html#how-our-server-handles-requests 按照这个页面的例子写的,留作笔记//index.jsvar server = require('./server');var route = require('./routes');var requestHandlers = require("./requestHanlders");var handle = {};handle["/"] = requestHandle 阅读全文