let url = '47.108.153.30/detail/2?checkcode=swqxad' let checkcode=url.split('=') const idcode=url.split('/') const iidcode=idcode[2].split('?') console.log(checkcode[1]); console.log(iidcode[0]);