js get the local domain and path fast

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


原文地址:https://www.cnblogs.com/otfsenter/p/9012872.html