1. // location
    2. console.log(location.href) // 整个网址
    3. console.log(location.protocal) // 'https' 'http'
    4. console.log(location.pathname) // 'learn/199'
    5. console.log(location.host) // 域名
    6. console.log(location.search) // ?后面
    7. console.log(location.hash) // #后面
    8. //history
    9. history.back() // 后退
    10. history.forward() // 前进