推荐阅读

var curUrl = location.href;