let params = new URLSearchParams(location.search); //ticket是你要截取的参数 let ticket = params.get('ticket')