js获取当前Url的4种方法
获取当前Url的4种方法
var url = window.location.href;
var url = self.location.href;
var url = document.URL;
var url = document.location;
from:https://www.cnblogs.com/ajk4/articles/6054410.html
本文链接地址:https://const.net.cn/168.html
获取当前Url的4种方法
var url = window.location.href;
var url = self.location.href;
var url = document.URL;
var url = document.location;
from:https://www.cnblogs.com/ajk4/articles/6054410.html
本文链接地址:https://const.net.cn/168.html