JavaScript获取url和ip端口号

var address=window.location.href; //url
var hostport=document.location.host;//ip:端口号

猜你喜欢

转载自blog.csdn.net/weixin_42338519/article/details/89875650
今日推荐