AJAX request URL routing
This strikes me as somewhat similar to this question
I've got an AJAX request on my page, and the pag开发者_开发技巧e location is /a/b/c. I want to send the request to d. Sending it to /d or to a/b/d I can do. However, I need to route it to a/b/c/d. How do I do that?
Use the current page url and append /d
to it.
eg.
var urlToUse = location.href + "/d";
精彩评论