js get the local domain and path fast

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


posted @ 2018-05-09 10:40  idlewith  阅读(166)  评论(0编辑  收藏  举报