anonīms Posted August 26, 2011 Report Share 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 Link to comment Share on other sites More sharing options...
0 daGrevis Posted August 26, 2011 Report Share Posted August 26, 2011 Pamēģini... console.log(url_href); Quote Link to comment Share on other sites More sharing options...
0 anonīms Posted August 26, 2011 Author Report Share Posted August 26, 2011 aizstājot var url_href = window.location ar var url_href = '13/131'; iet :/ Quote Link to comment Share on other sites More sharing options...
0 anonīms Posted August 26, 2011 Author Report Share Posted August 26, 2011 nu ir ir tie dati tur. alerts ar izvada Quote Link to comment Share on other sites More sharing options...
0 anonīms Posted August 26, 2011 Author Report Share 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 Link to comment Share on other sites More sharing options...
Question
anonīms
Kāpēc?
Link to comment
Share on other sites
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.