javascript - Problem with url -


var x = 20; xhr.open('get','http://127.0.0.1:8000/insert/x); 

how can pass value of x in http string , get

xhr.open('get','http://127.0.0.1:8000/insert/20); request?  

xhr.open('get','http://127.0.0.1:8000/insert/' + x);


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -