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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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