1、页面跳转 window.location.href="/m/front/invest/investList" 2、获取URL中参数 var type=location.search.substr(1).split("=")[1];