JS获取地址栏参数的方法(原生、vue)

文章浏览阅读94次。若地址栏URL为:code-nav/article/917?type=12&title=abc,我们要获取到地址栏后面的的type和title参数,如何才能拿到呢?