[]

Jquery'de get tarzı bir şey?
window.location.href var. ama bu tüm linki alıyor.
blabla.com?git=anasayfa olan linkte "sadece git'in belirttiği bölümü al" deme gibi bir şansımız yok mu? illa splitle vs. mi halledicez?
blabla.com?git=anasayfa olan linkte "sadece git'in belirttiği bölümü al" deme gibi bir şansımız yok mu? illa splitle vs. mi halledicez?

window.location.search olabilir.
- Sir Anthony Hopkins
(20.05.13 09:27:33)

function getURLParameter(name) {
return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null;
}
stackoverflow.com
return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null;
}
stackoverflow.com
- yuto
(20.05.13 09:27:48 ~ 09:29:13)
1