anonīms Posted August 26, 2011 Report Posted August 26, 2011 url_href.split is not a function var hreff = url_href.split('/'); var url_href = window.location; var hreff = url_href.split('/'); alert(hreff[1]); Kāpēc? Quote
0 daGrevis Posted August 26, 2011 Report Posted August 26, 2011 Pamēģini... console.log(url_href); Quote
0 anonīms Posted August 26, 2011 Author Report Posted August 26, 2011 aizstājot var url_href = window.location ar var url_href = '13/131'; iet :/ Quote
0 anonīms Posted August 26, 2011 Author Report Posted August 26, 2011 nu ir ir tie dati tur. alerts ar izvada Quote
0 anonīms Posted August 26, 2011 Author Report Posted August 26, 2011 Paldies. var url_href = window.location.href; console.log(url_href.href); var hreff = url_href.split("/"); alert(hreff[0]); Bija tiešām asap. Quote
Question
anonīms
Kāpēc?
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.