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