您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

javascript获得当前的信息的一些常用命令_基础知识

2024/3/1 4:42:22发布28次查看
本文内容很简单,给大家总结一下javascript获得当前的信息的一些常用命令
console.info(document.url= + document.url);
console.info(document.location.href= + document.location.href);
//console.info(document.base= + document.base); //这是错的!
console.info(document.location= + document.location);
console.info(self.location.href= + self.location.href);
console.info(top.location.href= + top.location.href);
console.info(location.hostname= + location.hostname);
console.info(window.location.host= + window.location.host);
console.info(window.location.pathname= + window.location.pathname);
暂时想起来的就这些啦,后续再更新^_^
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product