网络编程 
首页 > 网络编程 > 浏览文章

nodejs实现获取当前url地址及url各种参数值

(编辑:jimmy 日期: 2025/12/26 浏览:3 次 )

复制代码 代码如下:
//需要使用的模块 http   url
当前url   http://localhost:8888/select"codetitle">复制代码 代码如下:
var testUrl =  'http://localhost:8888/select"codetitle">复制代码 代码如下:
http://mj_0203.0fees.net/index.php?aa=001&bb=002
document.location:        http://mj_0203.0fees.net/index.php?aa=001&bb=002
document.URL:             http://mj_0203.0fees.net/index.php?aa=001&bb=002
document.location.href:   http://mj_0203.0fees.net/index.php?aa=001&bb=002
self.location.href:       http://mj_0203.0fees.net/index.php?aa=001&bb=002
top.location.href:        http://mj_0203.0fees.net/index.php?aa=001&bb=002
parent.document.location: http://mj_0203.0fees.net/index.php?aa=001&bb=002
top.location.hostname:    mj_0203.0fees.net
location.hostname:        mj_0203.0fees.net

上一篇:jquery实现的缩略图预览滑块实例
下一篇:使用javascript提交form表单方法汇总