获取您自己的 Node 服务器
var url = require('url');
var adr = 'https://127.0.0.1:8080/default.htm?year=2017&month=february';
//Parse the address:
var q = url.parse(adr, true);

/*The parse method returns an object containing url properties*/
console.log(q.host);
console.log(q.pathname);
console.log(q.search);

/*The query property returns an object with all the querystring parameters as properties:*/
var qdata = q.query;
console.log(qdata.month);

              
localhost:8080
/default
?year=2017&month=february
february