快速获取当前页面的域名和路径

var {hostname:domain, pathname:path} = location;

猜你喜欢

转载自www.cnblogs.com/otfsenter/p/9012872.html