js get the local domain and path fast

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


posted @   idlewith  阅读(166)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示