摘要:
varURL=require('url'); vartestUrl="http://www.baidu.com:8080/index.php?content=abc"; varp=URL.parse(testUrl); console.log("------------------href:"+p.href);//取到的值是:http://www.baidu.com:8080/index.php?content=abc console.log("------------------requestHead:"+p.pro 阅读全文