http://localhost:8888/select?name=a&id=5
為饒陽等地區(qū)用戶提供了全套網(wǎng)頁設(shè)計(jì)制作服務(wù),及饒陽網(wǎng)站建設(shè)行業(yè)解決方案。主營業(yè)務(wù)為成都網(wǎng)站設(shè)計(jì)、網(wǎng)站建設(shè)、饒陽網(wǎng)站設(shè)計(jì),以傳統(tǒng)方式定制建設(shè)網(wǎng)站,并提供域名空間備案等一條龍服務(wù),秉承以專業(yè)、用心的態(tài)度為用戶提供真誠的服務(wù)。我們深信只要達(dá)到每一位用戶的要求,就會得到認(rèn)可,從而選擇與我們長期合作。這樣,我們也可以走得更遠(yuǎn)! [javascript] view plaincopyprint? http.createServer(function(request,response){ var pathname = url.parse(request.url).pathname; //pathname => select var arg = url.parse(request.url).query; //arg => name=a&id=5 console.log("Request for " + arg ); var name = querystring.parse(arg).name; //name => a console.log("name = "+name); console.log("Request for " + pathname + " received."); }).listen(8888);http.createServer(function(request,response){ var pathname = url.parse(request.url).pathname; //pathname => select var arg = url.parse(request.url).query; //arg => name=a&id=5 console.log("Request for " + arg ); var name = querystring.parse(arg).name; //name => a console.log("name = "+name); console.log("Request for " + pathname + " received."); }).listen(8888);
//querystring.parse(arg) => { name: 'a', id: '5' }
不登高山,怎知天高;不臨深溪,焉知地厚!站在堅(jiān)實(shí)的土地上,做著生命中最真實(shí)的事情;像一棵挺拔的大樹,認(rèn)可自己的命運(yùn)并敢于迎接屬于這一方天空的風(fēng)風(fēng)雨雨。