I have a page that displays information through AJAX
. Each time I do a search, I have the search value and page in URL
, as follows:
/ Material / Index ?? wordChave ?? numPage
I can get these values through .split("??")
, but I wanted to implement something more intuitive:
/ Material / Index? qw = WordChave & pag = numPage
How do I save a keywordChave and another numPage in a variable and most importantly: the keyword may be missing, but have the page number. With the question marks I have I can not tell if what I have in URL
is a search value, or a page.